下面是錯誤的資訊,一直顯示我無法呼叫QMetaObject::invokeMethod,Qt版本是5.12.4,環境是ubuntu18.04
/home/peng/Desktop/Cheetah-Software-master/sim/src/SimControlPanel.cpp: In lambda function:
/home/peng/Desktop/Cheetah-Software-master/sim/src/SimControlPanel.cpp:408:12: error: no matching function for call to ‘QMetaObject::invokeMethod(SimControlPanel*, SimControlPanel::on_startButton_clicked()::<lambda()>::<lambda(std::__cxx11::string)>::<lambda()>)’
});
^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qwindowdefs.h:44:0,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:44,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1,
from /home/peng/Desktop/Cheetah-Software-master/sim/include/SimControlPanel.h:9,
from /home/peng/Desktop/Cheetah-Software-master/sim/src/SimControlPanel.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:406:17: note: candidate: static bool QMetaObject::invokeMethod(QObject*, const char*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
static bool invokeMethod(QObject *obj, const char *member,
^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:406:17: note: candidate expects 14 arguments, 2 provided
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:420:24: note: candidate: static bool QMetaObject::invokeMethod(QObject*, const char*, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
static inline bool invokeMethod(QObject *obj, const char *member,
^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:420:24: note: candidate expects 13 arguments, 2 provided
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:437:24: note: candidate: static bool QMetaObject::invokeMethod(QObject*, const char*, Qt::ConnectionType, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
static inline bool invokeMethod(QObject *obj, const char *member,
^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:437:24: note: candidate expects 13 arguments, 2 provided
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:454:24: note: candidate: static bool QMetaObject::invokeMethod(QObject*, const char*, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
static inline bool invokeMethod(QObject *obj, const char *member,
^~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:454:24: note: no known conversion for argument 2 from ‘SimControlPanel::on_startButton_clicked()::<lambda()>::<lambda(std::__cxx11::string)>::<lambda()>’ to ‘const char*’
sim/CMakeFiles/sim.dir/build.make:246: recipe for target 'sim/CMakeFiles/sim.dir/src/SimControlPanel.cpp.o' failed
make[2]: *** [sim/CMakeFiles/sim.dir/src/SimControlPanel.cpp.o] Error 1
CMakeFiles/Makefile2:2583: recipe for target 'sim/CMakeFiles/sim.dir/all' failed
make[1]: *** [sim/CMakeFiles/sim.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
運行的是MIT的機器人的模擬器,這里一直沒法編譯完成,之前qt5.10.0也卸載重裝了。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/59867.html
標籤:Qt
上一篇:華為的WLAN+頁面如何直接跳轉到該頁面?以及獲得WLAN+的開關狀態
下一篇:wex5
