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. Default background colour for QToolbar?

Default background colour for QToolbar?

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

    Is it QPalette::ColorRole::Button? Is this true regardless of the active Theme (Dark/Light)?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonSchroeder
      wrote on last edited by
      #2

      This depends on the operating system. The default style for Windows does not respect the QPalette in a lot of places. It is much better to use a stylesheet instead. This might work with the Fusion style which is only the default on Linux.

      PerdrixP 1 Reply Last reply
      1
      • S SimonSchroeder

        This depends on the operating system. The default style for Windows does not respect the QPalette in a lot of places. It is much better to use a stylesheet instead. This might work with the Fusion style which is only the default on Linux.

        PerdrixP Offline
        PerdrixP Offline
        Perdrix
        wrote on last edited by
        #3

        @SimonSchroeder Thank you

        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