FrancescoCeruti / linux-show-player

Linux Show Player - Cue player designed for stage productions
https://linux-show-player.org
GNU General Public License v3.0
205 stars 49 forks source link

[0.5.x] Detect qt5ct and workaround it #198

Closed s0600204 closed 4 years ago

s0600204 commented 4 years ago

(Written in response to the recent various "icons not being drawn" comments.)

qt5ct creates (or requires the user to create) the environment argument QT_QPA_PLATFORMTHEME with the value qt5ct.

The code supplied below detects the existence of the environment argument, checks its value, and if relevant adds a (blank) argument to be passed to the invocation of QApplication. This appears to causes Qt to ignore the environment value and fallback on the default platform theme.


A fix doesn't seem to be needed for the 0.6/develop branch.

FrancescoCeruti commented 4 years ago

Nice, I'll look into merge it. Did you consider using os.getev()?

s0600204 commented 4 years ago

Knew I was overlooking something...