无法将“org.freedesktop.IBus”连接到 globalEngineChanged(QString) 错误

问题描述 投票:0回答:1

我试图按照 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,如果有帮助的话。

qt qt5 qt-creator qmake qt6
1个回答
0
投票

如果您不需要ibus,请尝试清除它:

sudo apt purge ibus

这在 WaylandX11 上都进行了测试。

如果您需要更多详细信息,请参阅此thread,尤其是 JoeCFD 的回复。

© www.soinside.com 2019 - 2024. All rights reserved.