How to have my Qt application use Gnome CSD?
-
@Vadi2 said in How to have my Qt application use Gnome CSD?:
Gnome's Client Side Decoration? I
Hi
Qt is not involved in anything regarding the decorations
and if you are asking if there is Qt support for it directly then no.I tried to google how to enable it for an app but i can mostly find people trying to disable it so
its not clear if you can use stylesheet or one must use gnome API and WindowWidget -
Hi,
Wouldn't that happen through Qt's GTK platform theme plugin ?
-
Hi if you find out more, please update this thread.
Normally i can find most stuff on google but i utterly failed to find anything
that say how to make/use it.
It seems to come from
https://developer.gnome.org/gtk3/stable/GtkHeaderBar.htmlBut it seem you're the first to ask how to enable with Qt programs so its a bit exciting :)
-
Yep, I think you are correct in your search - it is the GtkHeaderBar that does it: http://python-gtk-3-tutorial.readthedocs.io/en/latest/layout.html#headerbar
-
@Vadi2
Ok. I did wonder how the GTK platform theme plugin
would be able to inject that into
the Qt app.
so i grepped these files
Src\qtbase\src\plugins\platformthemes\gtk3\qgtk3dialoghelpers.cpp
Src\qtbase\src\plugins\platformthemes\gtk3\qgtk3menu.cpp
Src\qtbase\src\plugins\platformthemes\gtk3\qgtk3theme.cpp
and whole src folder but saw nothing mention it. Might just been abstracted out into classes with other names but i had hoped at least a little clue :) -
I've added a feature request here: https://bugreports.qt.io/browse/QTBUG-63969
It's a bit disappointing that Qt doesn't have support for it already: this is not a new technology, it's at least 3-4 years old...
-
Might not be all that young but you might also be the first one wanting to use that feature in that way.