Your code does not make any sense for me. I think that opening 2 tabs in Assistant (QByteArray, QTime) and just using brain for 5 to 10mins (10 is too much but I can understand it) can give you a solution. Why are you asking us for almost any smallest issue which is even not connected with any Qt specific features, those issues just requires you to think for a while about the problem or sometimes to also read about some basics like endianess, where google is your friend and can give you answer in 1s - so you can get the answer for some question faster than even writing this question on forum (any forum, not only Qt Centre).
I really want to help people here on Qt Centre, but for example: when I am helping my younger brother to do his first C++ projects for his studies, I don't give you straight solution, I just want him to think for a while as I'm giving only hints so finally he discovers right solution by himself with a little help, so when he faces similar solution to days later then he knows those basic steps leading him to the right solution. He knows he can use
www.cppreference.com or google for some specific, detailed explanations.
But you look like don't know that google and Qt Assistant exist. You look like you rather want to spend 5minutes on writing new post and waiting minutes to hours for answer than just spending those 5 minutes on finding the solution...
Why can't you learn that you need to know some basic stuff to understand some more complex, as usually this complex stuff is explained with those basics?
Why can't you learn that "alignment" and "ordering" is not the same especially when you talk about endianess?
You just want to jump over the problems to get the working code fast. If you want so, then maybe you should ask someone to do the job for you and pay him for his job?
Bookmarks