Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-03-30 20:03:52

gschwarz
Member
Registered: 2023-03-30
Posts: 23

QT applications appearance configuration on XFCE?

On KDE plasma there are global settings to configure whether (QT5) applications (such as kmail) show symbols in menus or on buttons or not:
https://docs.kde.org/stable5/en/plasma- … index.html

Settings->Appearance->Application Style->Configure Icons and Toolbars -> Show Icons: On buttons/In menus

Where/how can I configure that behavior for QT5 applications running on XFCE?
I do have a QT5 settings panel (QT5 configuration tool) which in its interface pane has "dialogue panels have icons" and "menus have icons".
Disabling them however does not seem to have an effect on QT5 applications (I tried Kmail's "language setting" dialogue as an example).
More precisely, they work for some menus/dialogues, but not for all.
Any ideas what to do about this?

Offline

#2 2023-03-31 11:37:35

robson75
Member
From: Poland
Registered: 2023-03-30
Posts: 13

Re: QT applications appearance configuration on XFCE?

Have you added this to your /etc/environment file?

export QT_QPA_PLATFORMTHEME="qt5ct"

Arch Linux Xfce - 64Bit Linux User #621110 GitHub

Offline

#3 2023-04-01 15:51:46

gschwarz
Member
Registered: 2023-03-30
Posts: 23

Re: QT applications appearance configuration on XFCE?

No, I hadn't, but I checked in Terminal that echo $QT_QPA_PLATFORMTHEME does yielt qt5ct. So it's probably set elsewhere.
I now added QT_QPA_PLATFORMTHEME=qt5ct to my /etc/environment (note: no "export", which to the best of my knowledge is not necessary there, unlike in /etc/profile). Does not make a difference though.

Is there a way I can display the actual QT5 setting for showing icons on buttons and in menus? Here do QT5 applications retrieve that information from?

BTW, I see the same issue in the "configure language" window in Dolphin or Kate, so the issue is not specific to Kmail.

Last edited by gschwarz (2023-04-01 16:21:36)

Offline

#4 2023-04-01 18:05:28

gschwarz
Member
Registered: 2023-03-30
Posts: 23

Re: QT applications appearance configuration on XFCE?

It now turned out that this is a "feature" (or, depending on your expectations, a shortcoming) of qt5ct. See here for an explanation and how to work around it:
https://sourceforge.net/p/qt5ct/tickets/94/

Offline

#5 2023-04-01 19:01:35

robson75
Member
From: Poland
Registered: 2023-03-30
Posts: 13

Re: QT applications appearance configuration on XFCE?

I don't know what distribution you use, but for me on Arch Linux there is a PKGBUILD available for the qt5-styleplugins package that has a GTK2 theme, and for me it looks like this

Przechwycenie-obrazu-ekranu-2023-04-01-20-51-09.png

EDIT.

gschwarz wrote:

I now added QT_QPA_PLATFORMTHEME=qt5ct to my /etc/environment (note: no "export", which to the best of my knowledge is not necessary there, unlike in /etc/profile). Does not make a difference though.

You need to restart the system for it to take effect.

Last edited by robson75 (2023-04-01 20:44:33)


Arch Linux Xfce - 64Bit Linux User #621110 GitHub

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 8 queries executed - Memory usage: 534.07 KiB (Peak: 534.91 KiB) ]