Solved Qt5.15 no QButtonGroup::idClicked in QButtonGroup
-
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 sdkbomexportdialog.cpp:61:83: error: no member named 'idClicked' in 'QButtonGroup'
is this a bug?
-
Hi,
There's something strange indeed as the header for Qt 5.15.0 has it.
-
@SGaist . @De-Backer
https://doc-snapshots.qt.io/qt5-5.15/qbuttongroup-obsolete.html#buttonClicked-1 saysvoid 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 :)
-
@SGaist
error in folder "gcc_64" then. -
@JonB what I was pointing is that the header contains the method reported to be missing.
-
@SGaist
Yes, I annotated, I felt like putting in the official links showing what ought to be the case :) Might help whoever reports it.... -
Yes diff on.
Qt/5.15.0/gcc_64/include/QtWidgets/qbuttongroup.h
Qt/5.15.0/Src/qtbase/src/widgets/widgets/qbuttongroup.h
I'll install the SDK once more.
-
Then it looks like a bug with the files packed in the installer.
-
Clean install works, thanks everyone.