Skip to content
Snippets Groups Projects
README.md 2.34 KiB
Newer Older
Ilya Kotov's avatar
Ilya Kotov committed
qt6ct - Qt6 Configuration Tool

This program allows users to configure Qt6 settings (theme, font, icons, etc.)
under DE/WM without Qt integration.

Ilya Kotov's avatar
Ilya Kotov committed
Official home page: https://www.opencode.net/trialuser/qt6ct
Ilya Kotov's avatar
Ilya Kotov committed

Requirements:

- GNU Linux or FreeBSD
- qtbase >= 6.2.0
- qtsvg >= 6.2.0 (Runtime dependency for the SVG icon support)
- qttools >= 6.2.0 (For build only)
Ilya Kotov's avatar
Ilya Kotov committed


Installation:

Ilya Kotov's avatar
Ilya Kotov committed
- Arch package
  https://archlinux.org/packages/?q=qt6ct
Wayne Wesley's avatar
Wayne Wesley committed

- Source Code (qmake)
Ilya Kotov's avatar
Ilya Kotov committed
```
  qmake6 PREFIX=<your installation path>
Wayne Wesley's avatar
Wayne Wesley committed
  make
  sudo make install
Ilya Kotov's avatar
Ilya Kotov committed
```
- Source Code (cmake)
Ilya Kotov's avatar
Ilya Kotov committed
```
  cmake -DCMAKE_INSTALL_PREFIX=<your installation path>
  make
  sudo make install
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed

Add line 'export QT_QPA_PLATFORMTHEME=qt6ct' to ~/.profile and re-login.
Alternatively, create the file /etc/X11/Xsession.d/100-qt6ct with
the following line:
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
export QT_QPA_PLATFORMTHEME=qt6ct
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
(or qt5ct for compatibility with Qt5 Configuration Tool)
Ilya Kotov's avatar
Ilya Kotov committed

Ilya Kotov's avatar
Ilya Kotov committed
Now restart X11 server to take the changes effect.

Extra build options (for advanced users only):
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
qmake DISABLE_WIDGETS=1 - compiles platform plugin without QtWidgets (useful for QML applications only)
qmake PLUGINDIR=<custom path> - changes the default installation path of the plugins (libqt6ct.so and libqt6ct-style.so)
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
Wayland:

If you are running Qt application under Wayland, you should export the following variables:
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=qt6ct
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
Debug Messages:

By default, debug messages from platform plugin are disabled. To enable them, you should
export the following environment variable:
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
export QT_LOGGING_RULES="qt6ct.debug=true"
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
Another way is to change qtlogging.ini file. See Qt documentation for details:
https://doc.qt.io/qt-6/qloggingcategory.html (paragraph "Configuring Categories")
Ilya Kotov's avatar
Ilya Kotov committed

Files and Directories:
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed
qt6ct - Qt6 configuration tool
libqt6ct.so - qt6ct platform plugin
libqt6ct-style.so - qt6ct proxy style plugin
Ilya Kotov's avatar
Ilya Kotov committed
libqt6ct-common.so - qt6ct shared library
Ilya Kotov's avatar
Ilya Kotov committed
~/.config/qt6ct/qt6ct.conf - configuration file
~/.config/qt6ct/qss, ~/.local/share/qt6ct/qss, /usr/share/qt6ct/qss, /usr/local/share/qt6ct/qss - style sheets
~/.config/qt6ct/colors,~/.local/share/qt6ct/colors, /usr/share/qt6ct/colors,
/usr/local/share/qt6ct/colors - color schemes
/etc/xdg/qt6ct/qt6ct.conf - default configuration file
Ilya Kotov's avatar
Ilya Kotov committed
```
Ilya Kotov's avatar
Ilya Kotov committed

Translation:

Ilya Kotov's avatar
Ilya Kotov committed
Use Transifex service: https://explore.transifex.com/qt-configuration-tool/qt6ct/