Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.10
-
None
Description
When building with manual tests enabled:
/home/moheim/qt/qt6/qtserialbus/tests/manual/modbus/adueditor/mainwindow.cpp:90:13: error: no matching member function for call to 'connect' 90 | connect(reply, &QModbusReply::finished, [reply, this]() { | ^~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:405:41: note: candidate function not viable: no known conversion from 'void (QModbusReply::*)()' to 'const char *' for 2nd argument 405 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, | ^ ~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:209:36: note: candidate function not viable: requires at least 4 arguments, but 3 were provided 209 | static QMetaObject::Connection connect(const QObject *sender, const char *signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 210 | const QObject *receiver, const char *member, Qt::ConnectionType = Qt::AutoConnection); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:212:36: note: candidate function not viable: requires at least 4 arguments, but 3 were provided 212 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 213 | const QObject *receiver, const QMetaMethod &method, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 214 | Qt::ConnectionType type = Qt::AutoConnection); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:230:9: note: candidate function template not viable: requires at least 4 arguments, but 3 were provided 230 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 231 | const typename QtPrivate::ContextTypeForFunctor<Func2>::ContextType *context, Func2 &&slot, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 232 | Qt::ConnectionType type = Qt::AutoConnection) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtserialbus/tests/manual/modbus/adueditor/mainwindow.cpp:153:5: error: no matching member function for call to 'connect' 153 | connect(m_device, &QModbusDevice::stateChanged, [](QModbusDevice::State state) { | ^~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:405:41: note: candidate function not viable: no known conversion from 'void (QModbusDevice::*)(QModbusDevice::State)' to 'const char *' for 2nd argument 405 | inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal, | ^ ~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:209:36: note: candidate function not viable: requires at least 4 arguments, but 3 were provided 209 | static QMetaObject::Connection connect(const QObject *sender, const char *signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 210 | const QObject *receiver, const char *member, Qt::ConnectionType = Qt::AutoConnection); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:212:36: note: candidate function not viable: requires at least 4 arguments, but 3 were provided 212 | static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 213 | const QObject *receiver, const QMetaMethod &method, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 214 | Qt::ConnectionType type = Qt::AutoConnection); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/moheim/qt/qt6/qtbase/src/corelib/kernel/qobject.h:230:9: note: candidate function template not viable: requires at least 4 arguments, but 3 were provided 230 | connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 231 | const typename QtPrivate::ContextTypeForFunctor<Func2>::ContextType *context, Func2 &&slot, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 232 | Qt::ConnectionType type = Qt::AutoConnection) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings and 2 errors generated.