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. QStyleFactory Styles
Forum Updated to NodeBB v4.3 + New Features

QStyleFactory Styles

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 437 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.
  • DriftwoodD Offline
    DriftwoodD Offline
    Driftwood
    wrote on last edited by
    #1

    When I run

    const QStringList styles = QStyleFactory::keys();
        for(auto s : styles)
        {
            qDebug() << s;
        }
    

    I get

    22:52:30: Starting /home/fmc/Desktop/Qt Projects/Qt-5-GUI-Development/build-QFileDemo-Desktop_Qt_6_0_0_GCC_64bit-Debug/QFileDemo ...
    "Windows"
    "Fusion"
    

    How can I add GTK to this list and then set it as default? I'm running Linux Mint 20.1.

    jsulmJ 1 Reply Last reply
    0
    • DriftwoodD Driftwood

      When I run

      const QStringList styles = QStyleFactory::keys();
          for(auto s : styles)
          {
              qDebug() << s;
          }
      

      I get

      22:52:30: Starting /home/fmc/Desktop/Qt Projects/Qt-5-GUI-Development/build-QFileDemo-Desktop_Qt_6_0_0_GCC_64bit-Debug/QFileDemo ...
      "Windows"
      "Fusion"
      

      How can I add GTK to this list and then set it as default? I'm running Linux Mint 20.1.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Driftwood If you're using Qt provided by Linux Mint install qt5-gtk-platformtheme package. But you seem to use Qt6?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • DriftwoodD Offline
        DriftwoodD Offline
        Driftwood
        wrote on last edited by
        #3

        @jsulm - I am using Qt6. Aside from reverting back to Qt5, do I have another option?

        jsulmJ 1 Reply Last reply
        0
        • DriftwoodD Driftwood

          @jsulm - I am using Qt6. Aside from reverting back to Qt5, do I have another option?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Driftwood said in QStyleFactory Styles:

          do I have another option?

          I don't know any other option

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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