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. Qt5.15 no QButtonGroup::idClicked in QButtonGroup

Qt5.15 no QButtonGroup::idClicked in QButtonGroup

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 3 Posters 1.5k Views 1 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.
  • D Offline
    D Offline
    De-Backer
    wrote on last edited by
    #1

    hello I'm trying to compile a piece of code from Qt5.14 to Qt5.15

    but i run into a problem.

    warning: ‘void QButtonGroup::buttonClicked(int)’ is deprecated: Use QButtonGroup::idClicked(int) instead [-Wdeprecated-declarations]
    

    at

    ~/Qt/5.15.0/gcc_64/include/QtWidgets/qbuttongroup.h
    

    there is no idClicked(int)

    line 79 - 87

    Q_SIGNALS:
        void buttonClicked(QAbstractButton *);
        void buttonClicked(int);
        void buttonPressed(QAbstractButton *);
        void buttonPressed(int);
        void buttonReleased(QAbstractButton *);
        void buttonReleased(int);
        void buttonToggled(QAbstractButton *, bool);
        void buttonToggled(int, bool);
    

    -the code can be build.
    -with the following message from the sdk

    bomexportdialog.cpp:61:83: error: no member named 'idClicked' in 'QButtonGroup'
    

    is this a bug?

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

      Hi,

      There's something strange indeed as the header for Qt 5.15.0 has it.

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

      JonBJ D 2 Replies Last reply
      1
      • SGaistS SGaist

        Hi,

        There's something strange indeed as the header for Qt 5.15.0 has it.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @SGaist . @De-Backer
        https://doc-snapshots.qt.io/qt5-5.15/qbuttongroup-obsolete.html#buttonClicked-1 says void QButtonGroup::buttonClicked(int id) is obsoleted at 5.15.

        https://doc.qt.io/qt-5/qbuttongroup.html#idClicked says "This function was introduced in Qt 5.15."

        Just giving the official links :)

        SGaistS 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          There's something strange indeed as the header for Qt 5.15.0 has it.

          D Offline
          D Offline
          De-Backer
          wrote on last edited by
          #4

          @SGaist
          error in folder "gcc_64" then.

          1 Reply Last reply
          0
          • JonBJ JonB

            @SGaist . @De-Backer
            https://doc-snapshots.qt.io/qt5-5.15/qbuttongroup-obsolete.html#buttonClicked-1 says void QButtonGroup::buttonClicked(int id) is obsoleted at 5.15.

            https://doc.qt.io/qt-5/qbuttongroup.html#idClicked says "This function was introduced in Qt 5.15."

            Just giving the official links :)

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @JonB what I was pointing is that the header contains the method reported to be missing.

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

            JonBJ 1 Reply Last reply
            0
            • SGaistS SGaist

              @JonB what I was pointing is that the header contains the method reported to be missing.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @SGaist
              Yes, I annotated, I felt like putting in the official links showing what ought to be the case :) Might help whoever reports it....

              1 Reply Last reply
              0
              • D Offline
                D Offline
                De-Backer
                wrote on last edited by
                #7

                Yes diff on.
                Qt/5.15.0/gcc_64/include/QtWidgets/qbuttongroup.h
                Qt/5.15.0/Src/qtbase/src/widgets/widgets/qbuttongroup.h
                Screenshot_20200610_220153.png

                I'll install the SDK once more.

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

                  Then it looks like a bug with the files packed in the installer.

                  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
                  0
                  • D Offline
                    D Offline
                    De-Backer
                    wrote on last edited by
                    #9

                    Clean install works, thanks everyone.

                    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