QT5 Information

Post your Gambas programming questions here.
Post Reply
User avatar
thatbruce
Posts: 161
Joined: Saturday 4th September 2021 11:29pm

QT5 Information

Post by thatbruce »

This is more "specialized" than the "DidYouKnow" thread and is intended for those who have particular interest in getting the most out of the gb.gui.qt/gb.gui.qt5 components.

1) Getting your executable projects to work with your local qt5ct configuration
This one has been irritating me for months. I finally found out that you need to have QT_QPA_PLATFORMTHEME=qt5ct in your environment. This should be able to be set in your ~/"bash things" or you can start your program with "env QT_QPA_PLATFORMTHEME=qt5ct <path to your project .gambas".

2) Getting the IDE to start your project with your local qt5ct configuration
To do this you need to set the Debug configuration Environment items to include the same thing as in this diagram.
Selection_016.png
Selection_016.png (25.47 KiB) Viewed 567 times
3) Getting rid of annoying QT error messages in your console output
Sick of those "blah blah qt_qpa_blah blah blah" error messages in your output? Then
another handy little thing to add to your environment and in the IDE Debug Configuration is QT_LOGGING_RULES=*.debug=false,qt_qpa*=false.
(I have suggested to Benoit that that one should be added to the IDE.)
Have you ever noticed that software is never advertised using the adjective "spreadable".
User avatar
thatbruce
Posts: 161
Joined: Saturday 4th September 2021 11:29pm

Re: QT5 Information

Post by thatbruce »

Sorry, my bad.
That last one should be QT_LOGGING_RULES=*.debug=false;*.qpa.*=false.
It gets rid of annoying gaff like "qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1421, resource id: 23759460, major code: 40 (TranslateCoords), minor code: 0"
Have you ever noticed that software is never advertised using the adjective "spreadable".
Post Reply