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. Why QStyleFactory::keys() is missing?
Forum Updated to NodeBB v4.3 + New Features

Why QStyleFactory::keys() is missing?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.7k Views 1 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by Ibrahim
    #1

    Hi; I tried this code:

    qDebug() << QStyleFactory::keys();
    

    Then I get this result: ("Windows", "Fusion"). Whereas I know Plastique, GTK+, Mac etc. styles. Why QStyleFactory::keys() returns only ("Windows", "Fusion")? I'm using Qt 5.8, Thanks.

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

      Not all platform has all styles.
      So my guess would be you do this on windows 7 or newer.
      Also They removed some in Qt5
      http://blog.qt.io/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/

      "The styles we are primarily planning on removing are Motif, CDE, Cleanlooks and Plastique. Windows (classic) "

      1 Reply Last reply
      2
      • I Offline
        I Offline
        Ibrahim
        wrote on last edited by
        #3

        Thanks, well Can I set Gtk+ style any way? Else I have to create custom style?

        mrjjM 1 Reply Last reply
        0
        • I Ibrahim

          Thanks, well Can I set Gtk+ style any way? Else I have to create custom style?

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

          @Ibrahim
          Well you can still build the old styles and use them as you like.
          Its mentioned in the link. :)

          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