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

huangapple go评论64阅读模式
英文:

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 &quot;org.freedesktop.IBus&quot; 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 &lt;QApplication&gt;

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.

huangapple
  • 本文由 发表于 2023年4月11日 01:33:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75979318.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定