Qt5.15 no QButtonGroup::idClicked in QButtonGroup
Solved
General and Desktop
-
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 :)
-
Then it looks like a bug with the files packed in the installer.