Solved Class QDataStream has no member named startTransaction
-
Hi All,
I am getting that error and this is what I did, update QT to from 5.5 to 5.11, however I still have the same issue. I was following the fortune Server example in https://code.qt.io/cgit/qt/qtbase.git/tree/examples/network/fortuneclient?h=5.15.Any thoughts? please help, I've got a feeling this is something silly. I just want to understand, in case of heavy IP traffic, when data does not arrive in full how QDataStream functions works in buffering the incoming data.
Thanks
-
Thanks, I checked in the terminal if qmake -v was 5.11 and it was, in creator checked if it was automatically detected and it was, however, in the KITs tab, the old version was selected so I selected the new version. At the end, the project did not compile, there were errors with QT configuration and gcc libraries. I assumed this happened because of the way I installed 5.11 using ppa in Ubuntu. Based on this issues, I decided to download the QT open source .run file and start a new QT Creator configuration using the QT wizard and now it is working.
Based on the answer @Christian-Ehrlicher provided, l read carefully about QT versions settings and this helped me to find other settings I was missing. -
Make sure to use Qt5.7 or higher - startTransaction() in Qt5.7.
-
Thanks, I checked in the terminal if qmake -v was 5.11 and it was, in creator checked if it was automatically detected and it was, however, in the KITs tab, the old version was selected so I selected the new version. At the end, the project did not compile, there were errors with QT configuration and gcc libraries. I assumed this happened because of the way I installed 5.11 using ppa in Ubuntu. Based on this issues, I decided to download the QT open source .run file and start a new QT Creator configuration using the QT wizard and now it is working.
Based on the answer @Christian-Ehrlicher provided, l read carefully about QT versions settings and this helped me to find other settings I was missing.