Qt5 error using Geant4: This plugin does not support propagateSizeHints()
-
Hi all,
When I executed example B1 of Geant4 using Qt version 5.12.8 on WSL1 of Windows 10, I encountered the following error. It seems to be related to Qt, so I came here looking for advice.
This plugin does not support propagateSizeHints()
Any ideas and suggestions would be appriciated. If any additional information is required, I will provide it as soon as I see it. Thanks in advance.
-
Are there any limitations? Does your program not work after this message shows up?
Have you tried looking for a solution?propagateSizeHints()
is a function used inQPlatformWindow
.I think you can ignore that warning like others do, unless something really crashes:
-
Hi @Pl45m4 ,
Thank you very much. How can I check if there exist any limitations? I am not quite sure but I don't remember doing any extra settings on Qt5. My program does not work and the console hangs after the message shows up.
According to the first website you listed, I have added
export QT_QPA_PLATFORM='offscreen'
to my .bashrc file, but the same errorThis plugin does not support propagateSizeHints()
is output whether the line is commented out or not.I also added
export XDG_RUNTIME_DIR=/tmp
to the .bashrc file according to https://github.com/cuthbertLab/music21/issues/260#issuecomment-834489173. It seems necessary to setXDG_RUNTIME_DIR
as the path to directory where temporary files for the root user are stored. I tried but it didn't work.For the selection of plugin classes mentioned in https://doc.qt.io/qt-6/qpa.html, I have set
QT_QPA_PLATFORM
tooffscreen
and it doesn't work, as described above. If I setQT_QPA_PLATFORM
toqwindows
, another error occurs, with the output shown below.qt.qpa.plugin: Could not find the Qt platform plugin "qwindows" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: dxcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aborted (core dumped)
I used
sudo apt insatll qt5*
to install Qt5 on WSL1 and I have no idea about why it does not support the function used inQPlatformWindow
.If everything was going well with my program, there would be a visual interface but that is not the case. Maybe I have to fix this so I can use my program properly.
Thanks again for your time.