Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: kenny_w on 29 May 2022, 21:31:36

Title: qt6ct
Post by: kenny_w on 29 May 2022, 21:31:36
Hey guys, for qt5ct I have to use in /etc/environment
Code: [Select]
BROWSER=/usr/bin/xdg-open
QT_QPA_PLATFORMTHEME=qt5ct
what do I need to write for qt6ct? I'm unsure. let me know.
Title: Re: qt6ct
Post by: dimgel on 29 May 2022, 22:33:47
You made me check my environment and I found funny thing. I have qbittorrent which switched to qt6 few months ago, so I had to copy ~/.config/qt5ct to ~/.config/qt6ct and then to run qt6ct just in case; that was enough for qbittorrent to catch up with my theme. But I just realized that I forgot to change QT_QPA_PLATFORMTHEME value, it's still qt5ct. Maybe it's good because I might still have some qt5 apps installed.
Title: Re: qt6ct
Post by: SGOrava on 29 May 2022, 23:41:27
According to the Installation section of the README at https://github.com/trialuser02/qt6ct

Quote
Add line 'export QT_QPA_PLATFORMTHEME=qt6ct' to ~/.profile and re-login.
Alternatively, create the file /etc/X11/Xsession.d/100-qt6ct with
the following line:

export QT_QPA_PLATFORMTHEME=qt6ct

(or qt5ct for compatibility with Qt5 Configuration Tool)
Title: Re: qt6ct
Post by: kenny_w on 30 May 2022, 02:35:31
I'm not sure what I'm gonna do. I think I have more qt5 apps than qt6.... I can't use qt5ct and qt6ct at the same time? weird
Title: Re: qt6ct
Post by: Hitman on 30 May 2022, 03:00:49
Kvantum has recently started to manage both qt5 and qt6 programs at the same time, if you like it's themes it's very easy. Only limitation is that font configuration won't carry over. In that case just set QT_QPA_PLATFORMTHEME to qt6ct and it will also theme qt5 programs. This is what i do right now
Title: Re: qt6ct
Post by: kenny_w on 30 May 2022, 20:45:52
Kvantum has recently started to manage both qt5 and qt6 programs at the same time, if you like it's themes it's very easy. Only limitation is that font configuration won't carry over. In that case just set QT_QPA_PLATFORMTHEME to qt6ct and it will also theme qt5 programs. This is what i do right now
will we get a qt6-styleplugins? Cuz I think that's what's missing from QT6 right now, idk
Title: Re: qt6ct
Post by: dimgel on 08 June 2022, 14:19:33
just set QT_QPA_PLATFORMTHEME to qt6ct and it will also theme qt5 programs.

Funny, in my case it works the opposite way: QT_QPA_PLATFORMTHEME=qt5ct works for both qt5 and qt6, but qt6ct only for qt6.