You are not logged in.

#1 2022-12-21 11:52:38

rdbeni0
Member
Registered: 2020-01-09
Posts: 7

[SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

Hi,

i am trying to implement below instructions: https://wiki.archlinux.org/title/Unifor … plications
especially i am using QT_QPA_PLATFORMTHEME="qt5ct"

but the main problem is that qt5ct settings are not working in all Qt5 apps. For example:
-- KeePassXC qt5ct settings are working
-- audacious everything is ok
-- XnViewMP are not working
-- wireshark - the same, settings are ignored

so i can say that only 50% Qt apps are using qt5ct. How can i force app to use QT_QPA_PLATFORMTHEME ? Its not big issue, but i would like to make my OS little more consistent. I am using xfce4

Last edited by rdbeni0 (2022-12-21 17:48:47)

Offline

#2 2022-12-21 12:31:37

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: [SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

I also use xfce4 and qt5ct, and for me wireshark looks like this

wireshark.png

But I have a ~/home/.profile file created and this content in it

export QT_QPA_PLATFORMTHEME="qt5ct"

Arch Linux Xfce - 64Bit Linux User #621110

Offline

#3 2022-12-21 13:14:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

rdbeni0 wrote:

i am using QT_QPA_PLATFORMTHEME="qt5ct"

How are you attempting to apply that, exactly?

Offline

#4 2022-12-21 17:39:45

rdbeni0
Member
Registered: 2020-01-09
Posts: 7

Re: [SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

Head_on_a_Stick wrote:
rdbeni0 wrote:

i am using QT_QPA_PLATFORMTHEME="qt5ct"

How are you attempting to apply that, exactly?

export QT_QPA_PLATFORMTHEME="qt5ct" is inside ~/.bash_profile
and ~/.config/qt5ct exist

as I said: some apps are running correctly and some not. How can i debug why app is not respecting qt5ct?

Last edited by rdbeni0 (2022-12-21 17:42:38)

Offline

#5 2022-12-21 17:43:11

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

rdbeni0 wrote:

QT_QPA_PLATFORMTHEME="qt5ct" inside ~/.bash_profile

That file is only read when you open a new bash shell.

Read https://wiki.archlinux.org/title/Environment_variables

Offline

#6 2022-12-21 17:48:09

rdbeni0
Member
Registered: 2020-01-09
Posts: 7

Re: [SOLVED] Qt env QT_QPA_PLATFORMTHEME= is not working for all Qt5 apps

Ok, just noticed what is the issue

when i am running directly from shell:
wireshark or xnviewmp, then qt5ct is working

but when i am clicking via *.desktop file, then not.

Topic is solved. I will tweak some desktop files and it will work. Thanks


@Head_on_a_Stick - thanks for your suggestion

Last edited by rdbeni0 (2022-12-21 17:50:18)

Offline

Board footer

Powered by FluxBB