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. how to solve mqtt library problem
Forum Updated to NodeBB v4.3 + New Features

how to solve mqtt library problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 595 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    rajel052
    wrote on last edited by
    #1

    when i am adding library for Qt version 5.15.2 , its thrown an error :

    qmqttconnection.cpp:169:39: error: ‘errorOccurred’ is not a member of ‘QAbstractSocket’
    169 | connect(socket, &QAbstractSocket::errorOccurred, this, &QMqttConnection::transportError);

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      I would double-check to make sure you are definitely using the Qt version that you think you are; the errorOccurred() signal was added in Qt version 5.15. https://doc.qt.io/qt-6/qabstractsocket.html#errorOccurred

      1 Reply Last reply
      2
      • R Offline
        R Offline
        rajel052
        wrote on last edited by
        #3

        i am using Qt verion 5.15.2

        jsulmJ 1 Reply Last reply
        0
        • R rajel052

          i am using Qt verion 5.15.2

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @rajel052 said in how to solve mqtt library problem:

          i am using Qt verion 5.15.2

          Are you really sure?
          How did you verify what version you are using?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rajel052
            wrote on last edited by
            #5

            in Qt creator

            tools->kit->Qt-version ->5.15.2

            but when i check from ubuntu terminal using qmake -version its gives
            QMake version 3.1
            Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

            jsulmJ 1 Reply Last reply
            0
            • R rajel052

              in Qt creator

              tools->kit->Qt-version ->5.15.2

              but when i check from ubuntu terminal using qmake -version its gives
              QMake version 3.1
              Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @rajel052 said in how to solve mqtt library problem:

              tools->kit->Qt-version ->5.15.2

              But is this the Kit you are using?
              I guess you have at least one other Kit with Qt 5.12.8 and that one is currently set for your project.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                If you are building from the command line: always use the full path to the qmake executable from the Qt version you want to use. Otherwise you will get the one from your distribution. And no, changing any settings to point to a specific non distribution provided Qt is not a good idea because you will forget that you did that at some point and wonder why you don't have any qmake anymore when replacing the current version with a more recent one.
                It's just a sane and good habit to use the full path, you know exactly what to expect doing that.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1

                • Login

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