0 min
5

Qt5 and Qt6 Settings Note

Some setting for Qt5 and Qt6

  • #qt6
  • #qt5
  • #qt
By Baiyuechu@github/baiyuechuz

Qt5 and Qt6 Settings Note

0:00
-0:00

Qt5 and Qt6 Settings Note

Fix icon theme not working on polybar

Add the following line to your `.zprofile` (zsh) or `.bash_profile` (bash) file:
bashBASH
1export QT_QPA_PLATFORMTHEME=qt6ct
Or
bashBASH
1export QT_QPA_PLATFORMTHEME=qt5ct

Custom theme for qt

Create file yournametheme.conf in `~/.config/qt6ct/colors/` (with app qt6) and `~/.config/qt5ct/colors/` (with app qt5).
This is a my theme:
CONF
1[ColorScheme]
2active_colors=  #ffffffff, #ff282f3e, #ff5f6675, #ff111827, #ff111827, #ff282f3e, #ffffffff, #ffffffff, #ffffffff, #ff282f3e, #ff282f3e, #ff111827, #ffa5b4fc, #ff111827, #ffa5b4fc, #ffbdb0e4, #ff282f3e, #ffffffff, #ff282f3e, #ffffffff, #805f6675, #ffa5b4fc
3inactive_colors=#ff5f6675, #ff282f3e, #ff5f6675, #ff111827, #ff111827, #ff282f3e, #ff5f6675, #ffffffff, #ff5f6675, #ff282f3e, #ff282f3e, #ff111827, #ff111827, #ff5f6675, #ff5f6675, #ff5f6675, #ff282f3e, #ffffffff, #ff282f3e, #ffffffff, #805f6675, #ff111827
4disabled_colors=#ff5f6675, #ff111827, #ff5f6675, #ff111827, #ff111827, #ff282f3e, #ff5f6675, #ffffffff, #ff5f6675, #ff282f3e, #ff282f3e, #ff111827, #ff282f3e, #ff5f6675, #ffb3a6da, #ffa6e3f1, #ff282f3e, #ffffffff, #ff282f3e, #ffffffff, #805f6675, #ff282f3e

Use qt5ct and qt6ct to change settings

  • Install qt5ct and qt6ct
terminal
sudo pacman -S qt5ct
sudo pacman -S qt6ct
terminal
qt5ct
qt6ct
  • You can choose `your theme`, `font`, `icon theme` and more in the settings.

References

Join Baiyuechu Newsletter!

Get notified when I publish new articles, tutorials, and project updates. Subscribe for insights and actionable content.