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. Examples of all built-in Styles
Forum Update on Monday, May 27th 2025

Examples of all built-in Styles

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 4.7k 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by
    #1

    In my application startup I have:

    		//
    		// Set the Qt Application Style
    		//
    		app->setStyle(QStyleFactory::create("Fusion"));
    

    Which works fine.

    I'd like to see a web page with all the Qt built-in Styles that shows what they look like but can't seem to find one (maybe my Google foo has deserted me).

    Please could someone point me to the relevant resource.

    Thanks David
    David

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bonnie
      wrote on last edited by
      #2

      The QStyle doc shows a QComboBox in different styles.
      And if you use ui files, you can preview it in Qt Creator/Designer for all available built-in styles of the current platform.

      1 Reply Last reply
      3
      • PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        I am aware of that, but AFAIK that isn't a complete set of all the Styles. For example "Fusion" isn't in the list.

        PS Why are there only 3 styles listed by QStyleFactory::keys() (windowsvista, Windows, and Fusion) ?? I expected to see many more ...

        D.

        B 1 Reply Last reply
        0
        • PerdrixP Perdrix

          I am aware of that, but AFAIK that isn't a complete set of all the Styles. For example "Fusion" isn't in the list.

          PS Why are there only 3 styles listed by QStyleFactory::keys() (windowsvista, Windows, and Fusion) ?? I expected to see many more ...

          D.

          B Offline
          B Offline
          Bonnie
          wrote on last edited by Bonnie
          #4

          @Perdrix
          Haha, I think there actually aren't so many built-in styles, and most of them are platform-dependent.
          There's another doc: Qt Widget Gallery

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

            HI
            Most of the older styles were removed.
            https://www.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion

            1 Reply Last reply
            1
            • PerdrixP Offline
              PerdrixP Offline
              Perdrix
              wrote on last edited by
              #6

              Ah! OK the old styles were removed and there's only three shipped with Windows. AFAICT the style plugins only offer the OLD (removed) styles - apart from Fusion there's no Qt specific themes - is that right? Or did I miss some?

              PS Is there a "Dark Theme" version of Fusion or similar?

              David

              mrjjM 1 Reply Last reply
              0
              • PerdrixP Perdrix

                Ah! OK the old styles were removed and there's only three shipped with Windows. AFAICT the style plugins only offer the OLD (removed) styles - apart from Fusion there's no Qt specific themes - is that right? Or did I miss some?

                PS Is there a "Dark Theme" version of Fusion or similar?

                David

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

                @Perdrix said in Examples of all built-in Styles:

                PS Is there a "Dark Theme" version of Fusion or similar?

                Nope.
                However, you can make a basic one with palette
                https://stackoverflow.com/questions/15035767/is-the-qt-5-dark-fusion-theme-available-for-windows

                1 Reply Last reply
                1
                • R Robert Hairgrove referenced this topic on

                • Login

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