Search code examples
qtqt5qt-creatorqmakeqt6

Could not connect "org.freedesktop.IBus" to globalEngineChanged(QString) error


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.


Solution

  • 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.