Talk:Qt

From ArchWiki
Latest comment: 13 December 2024 by Quite in topic Qt 6 Configuration Tool

Qt5 no longer uses QGtkStyle

qt5-base no longer uses QGtkStyle [https://github.com/qtproject/qtbase/commit/899a815414e95da8d9429a4a4f4d7094e49cfc55] NicolaRevelant (talk) 21:14, 24 January 2024 (UTC)Reply

Qt 6 Configuration Tool

On System

I'm using Void Linux, and I wanted to style my Qt 6 apps using Kvantum on Hyprland.

qt5ct wouldn't set the styles for Qt 6 apps, so I had to try qt6ct.

That worked well, however, when I tried changing the QPA environment variable from QT_QPA_PLATFORMTHEME=qt5ct to QT_QPA_PLATFORMTHEME=qt6ct, it stopped styling Qt 5 applications. I expected it to be the other way round.

So it seems that the environment variable only has to be set as QT_QPA_PLATFORMTHEME=qt5ct, but qt6ct has to be used to style Qt 6 apps.

Supporting both qt5 and qt6 in QT_QPA_PLATFORMTHEME

I noticed this page says to set QT_QPA_PLATFORMTHEME=qt5ct:qt6ct. Where does this colon thing come from? It seems setting just QT_QPA_PLATFORMTHEME=qt5ct has the same effect (just as the section above says); qt5 apps use qt5ct's settings, and qt6 apps use qt6ct. Does setting both like the wiki says do anything different?

BBaoVanC (talk) 22:20, 12 October 2024 (UTC)Reply

Both programs qt5ct and qt6ct also complain -- there is a notification in their interfaces -- if QT_QPA_PLATFORMTHEME is set to anything else than exactly qt5ct or qt6ct. For example if there is a colon in there. It seems user talk added this colon thing. --Quite (talk) 07:55, 13 December 2024 (UTC) Edit: now I see above somebody else also saying that setting the env var to qt5ct seems to solve it for both qt5 and qt6Reply

On Flatpak

I also tried this on Flatpak, however, qt5ct/qt6ct wouldn't work there. Instead, I had to use QT_STYLE_OVERRIDE.

So I opened up Flatseal (you can also do it by CLI) and set QT_STYLE_OVERRIDE=kvantum globally.

Then I added xdg-config/Kvantum:ro to file permissions so that the Kvantum themes are accessible.

Next, I had to install the Kvantum runtime for Flatpak, as flatpak install org.kde.KStyle.Kvantum

I also had to have Kvantum theme engine (kvantum) installed on my system.

Then I could run Kvantum Manager (kvantummanager) to set my desired theme. JyoSkyKid (talk) 08:26, 8 April 2024 (UTC)Reply

If you use Void Linux, the Arch packages qt5ct and qt6ct are not relevant for you. Arch does not support Flatpak either. — Lahwaacz (talk) 14:26, 14 April 2024 (UTC)Reply
No, I got everything working on Void, I was just contributing what I know so that Arch users can fill the section for Qt 6. I didn't know Flatpak was not supported by Arch, it seemed as though Arch did have notes on Flatapk.. maybe my mistake. JyoSkyKid (talk) 14:43, 14 April 2024 (UTC)Reply
It seems Flatpak is still mentioned in sections like this. JyoSkyKid (talk) 14:52, 14 April 2024 (UTC)Reply
Moved to Flatpak#Flatpak Qt applications do not use Gnome Adwaita dark theme. — Lahwaacz (talk) 11:53, 17 April 2024 (UTC)Reply

Removal for "Known issues"

Special:Diff/817874 added Template:Remove for Special:PermanentLink/817874#Known issues. I added that section in the hopes that the next poor soul who is debugging Qt emoji rendering would be able to spend a shorter amount of time than I did on figuring it out, but I am somewhat ambivalent on its removal. That being said, Help:Style#"Known issues" section does not state how many known issues would be a minimum. BlankEclair (talk) 06:46, 18 October 2024 (UTC)Reply

Removal for "Emojis render as black and white despite a color emoji font being installed"

Special:Diff/817873 added Template:Remove for Special:PermanentLink/817873#Emojis render as black and white despite a color emoji font being installed. Instead of outright removing the section, perhaps we could do a stub pointing to a section on another page like Qt#Graphics misaligned or scaled improperly? BlankEclair (talk) 06:51, 18 October 2024 (UTC)Reply

That is definitely better than duplicating content. — Lahwaacz (talk) 16:04, 19 October 2024 (UTC)Reply