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.
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)