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

Dependency update fails: error: no matching member function for call to 'addAction'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • None
    • 6.2.5
    • WebEngine
    • None

    Description

      The dependency update fails in qtwebengine, tqtc/lts-6.2:

      https://codereview.qt-project.org/c/qt/tqtc-qtwebengine/+/414617

      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/qt/tqtc-qtwebengine/examples/webenginewidgets/simplebrowser/browserwindow.cpp:156:15: error: no matching member function for call to 'addAction'
      agent:2022/06/07 02:01:49 build.go:394:     fileMenu->addAction(tr("&New Window"), QKeySequence::New, this, &BrowserWindow::handleNewWindowTriggered);
      agent:2022/06/07 02:01:49 build.go:394:     ~~~~~~~~~~^~~~~~~~~
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:139:9: note: candidate function template not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:         addAction(const QIcon &actionIcon, const QString &text, const Obj *object, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:         ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:82:14: note: candidate function not viable: no known conversion from 'TestNamespace::QKeySequence::StandardKey' to 'const TestNamespace::QObject *' for 2nd argument
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QString &text, const QObject *receiver, const char* member
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:155:21: note: candidate function template not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:     inline QAction *addAction(const QIcon &actionIcon, const QString &text, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:                     ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:87:14: note: candidate function not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char* member
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:107:9: note: candidate template ignored: could not match 'const Obj *' against 'TestNamespace::QKeySequence::StandardKey'
      agent:2022/06/07 02:01:49 build.go:394:         addAction(const QString &text, const Obj *object, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:         ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:122:21: note: candidate function template not viable: requires at most 3 arguments, but 4 were provided
      agent:2022/06/07 02:01:49 build.go:394:     inline QAction *addAction(const QString &text, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:                     ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:80:14: note: candidate function not viable: requires 2 arguments, but 4 were provided
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QIcon &icon, const QString &text);
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qwidget.h:566:10: note: candidate function not viable: requires single argument 'action', but 4 arguments were provided
      agent:2022/06/07 02:01:49 build.go:394:     void addAction(QAction *action);
      agent:2022/06/07 02:01:49 build.go:394:          ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:79:14: note: candidate function not viable: requires single argument 'text', but 4 arguments were provided
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QString &text);
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/qt/tqtc-qtwebengine/examples/webenginewidgets/simplebrowser/browserwindow.cpp:167:15: error: no matching member function for call to 'addAction'
      agent:2022/06/07 02:01:49 build.go:394:     fileMenu->addAction(tr("&Open File..."), QKeySequence::Open, this, &BrowserWindow::handleFileOpenTriggered);
      agent:2022/06/07 02:01:49 build.go:394:     ~~~~~~~~~~^~~~~~~~~
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:139:9: note: candidate function template not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:         addAction(const QIcon &actionIcon, const QString &text, const Obj *object, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:         ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:82:14: note: candidate function not viable: no known conversion from 'TestNamespace::QKeySequence::StandardKey' to 'const TestNamespace::QObject *' for 2nd argument
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QString &text, const QObject *receiver, const char* member
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:155:21: note: candidate function template not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:     inline QAction *addAction(const QIcon &actionIcon, const QString &text, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:                     ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:87:14: note: candidate function not viable: no known conversion from 'TestNamespace::QString' to 'const TestNamespace::QIcon' for 1st argument
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QIcon &icon, const QString &text, const QObject *receiver, const char* member
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:107:9: note: candidate template ignored: could not match 'const Obj *' against 'TestNamespace::QKeySequence::StandardKey'
      agent:2022/06/07 02:01:49 build.go:394:         addAction(const QString &text, const Obj *object, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:         ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:122:21: note: candidate function template not viable: requires at most 3 arguments, but 4 were provided
      agent:2022/06/07 02:01:49 build.go:394:     inline QAction *addAction(const QString &text, Func1 slot
      agent:2022/06/07 02:01:49 build.go:394:                     ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:80:14: note: candidate function not viable: requires 2 arguments, but 4 were provided
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QIcon &icon, const QString &text);
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qwidget.h:566:10: note: candidate function not viable: requires single argument 'action', but 4 arguments were provided
      agent:2022/06/07 02:01:49 build.go:394:     void addAction(QAction *action);
      agent:2022/06/07 02:01:49 build.go:394:          ^
      agent:2022/06/07 02:01:49 build.go:394: /Users/qt/work/install/include/QtWidgets/qmenu.h:79:14: note: candidate function not viable: requires single argument 'text', but 4 arguments were provided
      agent:2022/06/07 02:01:49 build.go:394:     QAction *addAction(const QString &text);
      agent:2022/06/07 02:01:49 build.go:394:              ^
      agent:2022/06/07 02:01:49 build.go:394: 2 errors generated.
      

      Build log: http://ci-files01-hki.intra.qt.io/cilogs/qt/tqtc-qtwebengine/cae9ab085f575093e6522abf4acfc5613414a24e/MacOSMacOS_12x86_64MacOSMacOS_12x86_64Clangqtci-macos-12-x86_64-102-d80db2Sccache_WarningsAreErrors/bfb6873cf224521b02a14ca8111fc481d2adadde/build_1654568520/log.txt.gz

      Details: http://ci-files01-hki.intra.qt.io:8080/coin/integration/qt/tqtc-qtwebengine/tasks/1654568459

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            tarjasundqvist Tarja Sundqvist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes