~~(Note: This question was originally asked on QT's forum, without much help)~~
We recently upgraded to Ubutnu 22.04, with QT 6.5.1 installed using the online installer.
When porting some of our older (QT <= 5) apps, I noticed a strange issue with buttons, and progress bars, (so far).
In the designer, when I add a new button or progress bar,
this is what I get (After further testing, it's not only limited to button and progress bar. Several widgets are also affected).
When I run the app, this is what I get
Here's the real kicker, this is what happens when I resize/move the window
After posting the original question, I tried messing with the environment variables. I found two culprits
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
XDG_CURRENT_DESKTOP=ubuntu:GNOME
Running in an empty environment with env -i ...
, and only specifying the DISPLAY
variable without anything else, or even only just disabling these two in the IDE I'm using, I got the correct/expected behavior, the widgets/window looked identical to the preview in the designer.
Unfortunately, I can't unset XDG_CURRENT_DESKTOP
in .profile
"easily" without completely breaking my desktop environment, so that's a no-go.
Any help is very appreciated