Talk:Qt
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)
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)
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 qt6
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)
- 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)
- 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)
- It seems Flatpak is still mentioned in sections like this. JyoSkyKid (talk) 14:52, 14 April 2024 (UTC)
- 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)
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)
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)
- That is definitely better than duplicating content. — Lahwaacz (talk) 16:04, 19 October 2024 (UTC)
Missing items in Qt6
I realize this wiki is out of date, and I lack the expertise to fix it. It seems some items are left out of the arch version of Qt which are available in the official installer. There are no doubt many such items. I found Qt:PDF missing for example. This leaves one with the choice of installing the arch version(s), and being limited in development, or installing the Qt installer, possibly messing up pacman and no longer having a "clean" system as a workaround. It might be helpful at least to have a section discussing this option and how to deal with the complications of using the Qt installer.
Qt6: webengine is also missing, though there is a separate AUR for qt5-webengine. Perhaps it'd be nice to have a pacman friendly installer that includes, or gives the option of including everything, just like the "official" installer. Mostlyharmlesswiki (talk) 19:27, 12 July 2026 (UTC)
Maybe the opening section where it says qt6 is in the official repos needs modifications for being misleading at best. [quote] Qt 6.x and 5.x are available in the official repositories. [/quote] There are a LOT of qt related items in the official repos and the AUR, but none of them up to date or complete.