Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Class QDataStream has no member named startTransaction
Qt 6.11 is out! See what's new in the release blog

Class QDataStream has no member named startTransaction

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 573 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jc_Opc
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jc_Opc
      wrote on last edited by
      #3

      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.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Make sure to use Qt5.7 or higher - startTransaction() in Qt5.7.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • J Offline
          J Offline
          Jc_Opc
          wrote on last edited by
          #3

          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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved