Include qt5-style-plugins into the default installation, otherwise Qt5 apps don’t pick up the GTK+ style
Bug #1695618 reported by
Andrej Shadura
This bug affects 11 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtbase-opensource-src (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
In Artful and Bionic, Qt5 applications look alien because they don’t follow the GTK+ style.
For Qt5 applications to pick up the GTK+ style, qt5-style-plugins must be included into the default installation and “export QT_QPA_
Original bug description:
Since I upgraded to Qt 5.7.1, Qt5 apps stopped picking up the Ubuntu (GTK+, I presume) theme, and look very Windowsy. I have qt5-gtk-
tags: | added: bionic |
summary: |
- Qt5 apps don’t pick up the GTK+ style anymore + Include qt5-style-plugins into the default installation, otherwise Qt5 + apps don’t pick up the GTK+ style |
description: | updated |
To post a comment you must log in.
Hi Andrew!
In Qt 5.7, the GTK+ support was restructured:
* qt5-gtk- platformtheme contains GTK+ 3 platform theme *only* (i.e. native dialogs and icon theme).
* qt5-style-plugins contains GTK+ 2 platform theme *and* style.
So if you want the old GTK+ style, then the correct solution is install qt5-style-plugins and export QT_QPA_ PLATFORMTHEME= gtk2.