Skip to content
Snippets Groups Projects
README.md 1019 B
Newer Older
Ilya Kotov's avatar
Ilya Kotov committed
Qt6Gtk2 - GTK+2.0 integration plugins for Qt6

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

Requirements:

- GNU Linux or FreeBSD
Ilya Kotov's avatar
Ilya Kotov committed
- qtbase >= 6.2.0 (with private headers)
Ilya Kotov's avatar
Ilya Kotov committed
- GTK+ 2.0
- libX11

Installation:

Wayne Wesley's avatar
Wayne Wesley committed
- Arch AUR
  https://aur.archlinux.org/packages/qt6gtk2/

- Source Code
```
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

To change default installation root you should run the following
command:

L. L's avatar
L. L committed
`make install INSTALL_ROOT="custom root"`
Ilya Kotov's avatar
Ilya Kotov committed

L. L's avatar
L. L committed
Add line `export QT_QPA_PLATFORMTHEME=gtk2` to `~/.profile` and re-login.
Alternatively, create the file `/etc/X11/Xsession.d/100-qt6gtk2` with
Ilya Kotov's avatar
Ilya Kotov committed
the following line:

L. L's avatar
L. L committed
`export QT_QPA_PLATFORMTHEME=gtk2`
Ilya Kotov's avatar
Ilya Kotov committed

L. L's avatar
L. L committed
(`qt5gtk2` for compatibility with Qt5Gtk2, `qt6gtk2` is also a valid value)
Ilya Kotov's avatar
Ilya Kotov committed

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

Files and directories:

L. L's avatar
L. L committed
`libqt6gtk2.so` - GTK+2.0 platform plugin
`libqt6gtk2-style.so` - GTK+2.0 style plugin
Ilya Kotov's avatar
Ilya Kotov committed

Attention!
L. L's avatar
L. L committed
Environment variable `QT_STYLE_OVERRIDE` should be removed before usage.