我试图按照 Qt 教程进行操作,但出现此错误:
Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString)
我不明白,我的代码看起来很好所以我相信我的
.pro
文件或Qt Creator
设置有问题,我没有足够的Qt经验来修复它。
我试过用谷歌搜索这个问题,但没有找到解决方案。
这是我的代码:
#include <QApplication>
int main(int argc, char ** argv) {
// Define the QApplication
QApplication app (argc, argv);
// Return the app exec
return app.exec();
}
这是我的
.pro
文件
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4) : QT += widgets
SOURCES += \
main.cpp
我并没有真正做任何复杂的事情,所以我一定是错过了什么或者做错了什么。
我正在关注的教程是Qt Tutorials For Beginners 3 - First Qt Application,如果有帮助的话。