英文:
Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) error
问题
我试图按照Qt教程进行操作,但出现了以下错误:
Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString)
我不太理解这个错误,我的代码看起来足够正确,所以我认为可能是我的.pro
文件或Qt Creator
设置出了问题,而我对Qt不够熟悉,无法修复它。
我尝试在网上搜索这个问题,但没有找到解决方案。
这是我的代码:
#include <QApplication>
int main(int argc, char **argv) {
// 定义QApplication
QApplication app(argc, argv);
// 返回应用程序的执行
return app.exec();
}
这是我的.pro
文件:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4) : QT += widgets
SOURCES += \
main.cpp
我并没有做什么复杂的事情,所以我一定是漏掉了什么或者做错了什么。我正在遵循的教程是Qt初学者教程3 - 第一个Qt应用程序,如果有帮助的话。
英文:
I was trying to follow a Qt tutorial but I get this error:
Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString)
which I don't understand, my code seems fine enough so I believe there is a problem with my .pro
file or with Qt Creator
settings, and I don't have enough Qt experience to fix it.
I've tried googling the problem but found no solution.
This is my code:
#include <QApplication>
int main(int argc, char ** argv) {
// Define the QApplication
QApplication app (argc, argv);
// Return the app exec
return app.exec();
}
And this is my .pro
file
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4) : QT += widgets
SOURCES += \
main.cpp
I'm not really doing anything complicated, so I must have missed something or done something wrong.
The tutorial I'm following is Qt Tutorials For Beginners 3 - First Qt Application, if it helps.
答案1
得分: 5
If you don't need ibus, try purging it:
sudo apt purge ibus
This was tested on both Wayland and X11.
See this thread on Qt Forum: Qt6.5.0 and ibus (Ubuntu).
Issue has been addressed, see code qt io: qt/qtbase.git: IBus: fix missing Q_SLOTS.
英文:
If you don't need ibus, try purging it:
sudo apt purge ibus
This was tested on both Wayland and X11.
See this thread on Qt Forum: Qt6.5.0 and ibus (Ubuntu).
Issue has been addressed, see code qt io: qt/qtbase.git: IBus: fix missing Q_SLOTS.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论