How to have my Qt application use Gnome CSD?
How can I have my Qt application integrate with Gnome's Client Side Decoration? It looks quite out of place without it.
Gnome's Client Side Decoration? I
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
Wouldn't that happen through Qt's GTK platform theme plugin ?
The name does say "client-side", implying Qt needs to be involved now... I can interact with the macOS titlebar from my app, should be able to do the same here.
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
But 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
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
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.