@jsulm
OoI, why did Qt6 QString feel the need to introduce sliced() when we have had mid() for years?
EDIT Oh, mid() docs now say
If you know that position and n cannot be out of bounds, use sliced() instead in new code, because it is faster.
Hi,
@kshegunov I tried the same thing also your code but I could not manage it to work.. I have already have a Qdatastream, I get quint16 values from it... I tried your solution at first sight...
@Wieland The code you send works fine thank you very much..
Have Nice day guys.. Thanks for your help.. It's very valuable..
The two list types are unrelated so casting pointers to them is still not ok at all. To push the previous analogy - for compiler it's like casting int* to string*. You can of course use reinterpret_cast and the compiler will be happy to trust you, but that is in no way correct and will obviously explode in your face at runtime.