Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.1.0 RC2, 6.6.1, 6.6.2
-
Ubuntu 18.04
-
-
2ec2c54e0 (dev), 9fef654cc (6.7)
Description
uic uses new signal/slots syntax but does not use qOverload template. For example, uic produces uncompilable code for forms with connection to QLabel::setNum(int) slot. See attached example.
Compilation error:
In file included from mainwindow.cpp:4:0:
ui_mainwindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
ui_mainwindow.h:71:90: error: no matching function for call to ‘QObject::connect(QSlider*&, void (QAbstractSlider::)(int), QLabel&, <unresolved overloaded function type>)’
QObject::connect(horizontalSlider, &QSlider::valueChanged, label, &QLabel::setNum);
^
Attachments
Issue Links
- resulted from
-
QTBUG-76375 Qt 6: Connection syntax migration
- Reported
For Gerrit Dashboard: QTBUG-93413 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
557418,1 | uic: use qOverload for ambiguous slots | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
553911,13 | uic: use qOverload for ambiguous slots | dev | qt/qtbase | Status: MERGED | +2 | 0 |
554633,2 | uic: use qOverload for ambiguous slots | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |