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. Access Widget Palette Colors from QSS StyleSheet
Qt 6.11 is out! See what's new in the release blog

Access Widget Palette Colors from QSS StyleSheet

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 8.0k 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
    ivan.todorovich
    wrote on last edited by
    #1

    Is it possible? IE: background-color: LinkVisited;

    o_o Sorry for my rusted english.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      afaik not really.
      You can set some colors, but not access the palette

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        see "Qt Style Sheet reference":http://doc.qt.nokia.com/4.7/stylesheet-reference.html
        Here you see, which color you can set.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          [quote author="ivan.todorovich" date="1292274078"]Is it possible? IE: background-color: LinkVisited;[/quote]

          Yes: use the PaletteRole http://doc.trolltech.com/latest/stylesheet-reference.html#paletterole

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • I Offline
            I Offline
            ivan.todorovich
            wrote on last edited by
            #5

            [quote author="peppe" date="1292279793"]
            [quote author="ivan.todorovich" date="1292274078"]Is it possible? IE: background-color: LinkVisited;[/quote]

            Yes: use the PaletteRole http://doc.trolltech.com/latest/stylesheet-reference.html#paletterole[/quote]

            Thanks!! That's exactly what I needed :)

            o_o Sorry for my rusted english.

            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