Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135132

[qtserialbus] Cannot build manual tests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • SerialBus: MOD Bus
    • None
    • Linux/Wayland

    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.
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            heimrich Karsten Heimrich
            moheim Moss Heim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes