Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to have my Qt application use Gnome CSD?
Qt 6.11 is out! See what's new in the release blog

How to have my Qt application use Gnome CSD?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 5.4k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vadi2
    wrote on last edited by
    #1

    How can I have my Qt application integrate with Gnome's Client Side Decoration? It looks quite out of place without it.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Wouldn't that happen through Qt's GTK platform theme plugin ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • V Offline
          V Offline
          Vadi2
          wrote on last edited by
          #4

          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.

          mrjjM 1 Reply Last reply
          0
          • V Vadi2

            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.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Vadi2

            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.html

            But it seem you're the first to ask how to enable with Qt programs so its a bit exciting :)

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vadi2
              wrote on last edited by
              #6

              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

              mrjjM 1 Reply Last reply
              0
              • V Vadi2

                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

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @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 :)

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  Vadi2
                  wrote on last edited by
                  #8

                  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...

                  1 Reply Last reply
                  1
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Might not be all that young but you might also be the first one wanting to use that feature in that way.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    1

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved