Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt 6: Can't get GTK to work on Linux Mint

Qt 6: Can't get GTK to work on Linux Mint

Scheduled Pinned Locked Moved Unsolved Qt 6
6 Posts 4 Posters 1.5k Views
  • 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.
  • D Offline
    D Offline
    Driftwood
    wrote on 25 Jan 2021, 01:51 last edited by Driftwood
    #1

    I can't find the GTK library on Qt 6.0

    Missing_GTK.png

    I used the online installer and see nowhere it's even offered as an optional download. So how can I fix this?

    Btw, Qt 6.0 is the ONLY version I have on Linux Mint 20.1

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 25 Jan 2021, 06:01 last edited by
      #2

      There is (and was) no gtk platform plugin. Qt5/6 only has a platformtheme plugin for gtk.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      D 1 Reply Last reply 25 Jan 2021, 08:42
      1
      • C Christian Ehrlicher
        25 Jan 2021, 06:01

        There is (and was) no gtk platform plugin. Qt5/6 only has a platformtheme plugin for gtk.

        D Offline
        D Offline
        Driftwood
        wrote on 25 Jan 2021, 08:42 last edited by Driftwood
        #3

        @Christian-Ehrlicher - Then how do I get it to work? Surely the Qt devs have offered us a way to implement widgets that follow system themes. I've been using Code::Blocks to build the GUI and CLion to bring the apps to life. And wxWidgets are native, right out of the box.

        Btw, given the links below, some here seem to think differently than you.

        https://forum.qt.io/topic/75080/use-gtk-theme-on-linux

        https://forum.qt.io/topic/80675/gtk-style-not-working-on-qt5-7

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 25 Jan 2021, 20:41 last edited by
          #4

          Hi,

          No, @Christian-Ehrlicher is correct, GTK support is provided as a theme plugin not a platform 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
          0
          • J Offline
            J Offline
            JKSH
            Moderators
            wrote on 26 Jan 2021, 01:58 last edited by JKSH
            #5

            @Driftwood said in Qt 6: Can't get GTK to work on Linux Mint:

            I used the online installer and see nowhere it's even offered as an optional download.

            The GTK plugin is not a separate download; it comes bundled with Qt.

            how do I get it to work?

            What issues are you having?

            Btw, given the links below, some here seem to think differently than you.

            To clarify @Christian-Ehrlicher's message: The GTK plugin is not in gcc_64/plugins/platforms, but in gcc_64/plugins/platformthemes.

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            2
            • D Offline
              D Offline
              Driftwood
              wrote on 28 Jan 2021, 01:19 last edited by
              #6

              @JKSH - I found this:

              gtkThemes.png

              But it isn't working. And I see no way to turn it on. Everything I create with Qt on Linux comes away with the standard "Qt theme".

              gtkTheme-01.png

              On the left, we have Qt. On the right, Code::Blocks. I'm not making a comparison here, because I know Code::Blocks uses wxWidgets, and they adapt instantly to any theme. But I am trying to point out that I just created both of these on my Linux box. C::B holds true to my theme while Qt doesn't. I'm just trying to make Qt roll with my theme. And I know it can, because I use some Qt software on Linux that uses any theme I set. I just don't know how to get my Qt stuff to behave in kind. Any help in this matter would be greatly appreciated.

              1 Reply Last reply
              0

              4/6

              25 Jan 2021, 20:41

              • Login

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