Difference between revisions of "Set all Qt app's to use GTK+ font & theme settings"
From Manjaro
Views
Actions
Namespaces
Variants
Tools
(section template appeared to be out of bounds) |
(https://forum.manjaro.org/t/layout-of-qt5-programs-are-broken-after-stable-update-2025-02-04/173985/3) |
||
Line 28: | Line 28: | ||
{{File|file=~/.profile|content=<pre>export QT_QPA_PLATFORMTHEME="qt5ct"</pre>}} | {{File|file=~/.profile|content=<pre>export QT_QPA_PLATFORMTHEME="qt5ct"</pre>}} | ||
Add the following line to {{ic|~/.bash_profile}} if it does not already exist: | |||
{{File|file=~/.bash_profile|content=<pre>[[ -f ~/.profile ]] && . ~/.profile</pre>}} | |||
Reboot the computer (or logout and re-login) | |||
<!--T:22--> | <!--T:22--> |
Latest revision as of 16:32, 9 February 2025
When using a Desktop Environment or Window Manager that doesn't allow for the settings of QT themes, you can set QT to use your GTK themes instead.
Install qt5ct
using your favorite package manager or the command:
user $ pamac install qt5ct
Set environment variables in ~/.profile
by adding or updating the following lines:
~/.profile
export QT_QPA_PLATFORMTHEME="qt5ct"
Add the following line to ~/.bash_profile
if it does not already exist:
~/.bash_profile
[[ -f ~/.profile ]] && . ~/.profile
Reboot the computer (or logout and re-login)
Run the application QT5 Configuration Manager from the menu or run the command qt5ct
.
Logout and login again to make the change effective