Official QT-Creator ... does not work on Fedora 34?

I setup a VM in QEMU to do QT development without messing up my host machine …
I used the official QT installer and everything is fine with the installer and even the maintenanceTool is working.
But when I try to start QT-Creator (via the Desktop icon, the creator.sh or the exec) I have this error:

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

[1]    2943 IOT instruction (core dumped)  ~/Qt/Tools/QtCreator/bin/qtcreator

I installed the recommended packages: Qt for Linux/X11 | Qt 5.15
I added /home/me/Qt/5.15.2/gcc_64/bin to the PATH, I tried to start with “Gnome on Xorg”, I set SELinux to permissive, same result.

I do not know where to go from here.

OK looking at super long Qt forum qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. | Qt Forum

The trick is to use export QT_DEBUG_PLUGINS=1 !
Then you get a useful debug message. (Why do they hide just the useful part?)

It turns out I was missing a few xcb-util-... packages.
Using dnf whatprovides libxcb-image.so.0 … for each of them, or simply guessing allowed to install the missing packages.

No need for " Gnome on Xorg" nor Permissive mode on SELinux

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.