¡Hola Dmitry!

El 2018-04-04 a las 21:53 +0300, Dmitry Shachnev escribió:
However there is still one major problem with it: it does not support native GTK+ 3 dialogs. Test case: run Qt Designer under GNOME with qt5ct and without it. If you click Open button, the native GTK+ dialog will be used only when qt5ct is not used. This is a significant regression for users of GNOME, Xfce, Cinnamon, etc (compared to normal Qt setup).

Interesting, but at the same time you wouldn't have a well integrated gnome dialog if the gtk and qt5ct themes don't match. I'm not sure if there is a proper way to fix that.

Also, kde applications look "sane" when using qt5ct, and using the gtk2 or gtk3 platformtheme some ui annoyances are shown, specially if your kde theme doesn't match your gtk theme.

Given this issue, and the fact that it is difficult for an average user to disable qt5ct, I think we should not recommend it in Qt. Suggests is fine though.

The user should be able to set QT_QPA_PLATFORMTHEME in ~/.xsessionrc.

As Maximiliano mentioned some other things in his IRC message, I will reply to them too:

currently nothing depends on qt5-gtk-platformtheme qt5-style-plugins

libqt5gui5 currently recommends qt5-gtk-platformtheme. We cannot depend on it because we do not want to depend on GTK+.

qt5-style-plugins is a collection of obsolete styles that are no longer maintained or supported by The Qt Company. It can be sometimes safe to use, but we do not want to suggest using it.

Ok, then from the cinnamon side of things, I'm fine using the gtk3 platformtheme by default, and then the user might prefer to use qt5ct. I guess we could add a suggests for that.

At least on the cinnamon side of things we are setting QT_PLATFORMTHEME=gtk2

s/_/_QPA_/

There is no sense in doing that (and this is the wrong variable name anyway). Qt automatically enables GTK+ integration support when it is run on Cinnamon or on other GTK+ based desktop:

https://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp#n863

cinnamon-session upstream already tries to tweak QT_QCA_PLATFORMTHEME, we patched that as the expected platformtheme (qt5ct) was not available in Debian. I don't remember why we used the gtk2 platformtheme but I'm sure that it was the best option at that time.

From my side, this bug could be closed.

Happy hacking,
--
"Don't let what you cannot do interfere with what you can do."
-- Wooden's Rule
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: PGP signature

Reply via email to