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. QStyleSheet for "flat" property of a QGroupButton ?

QStyleSheet for "flat" property of a QGroupButton ?

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

    Hello,

    A QGroupButton has a "flat" property which can be setted to true or false via the designer for example. My question is : Can i set this display property via the qstylesheet of this QGroupButton ?

    Thank you

    raven-worxR 1 Reply Last reply
    0
    • B Ben35

      Hello,

      A QGroupButton has a "flat" property which can be setted to true or false via the designer for example. My question is : Can i set this display property via the qstylesheet of this QGroupButton ?

      Thank you

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Ben35
      What is a QGroupButton?
      Maybe you meant QButtonGroup, but this isn't a widget. Only widgets get polished by the stylehseet style.
      I guess you mean a QPushButton? In this case do this:

      QPushButton {
      qproperty-flat: true;
      }
      

      You can style all properties on a widget for which **DESIGNABLE ** (QtProperty) is set to true.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • B Offline
        B Offline
        Ben35
        wrote on last edited by
        #3

        Opps, sorry i meant "QGroupBox", but thanks a lot for your answer, that is exactly what i wanted.

        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