Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 909
LuisDSS Avatar asked Jun 28 '26 21:06

LuisDSS


1 Answers

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.

like image 71
CPPUIX Avatar answered Jul 01 '26 21:07

CPPUIX



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!