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. View CSS
Qt 6.11 is out! See what's new in the release blog

View CSS

Scheduled Pinned Locked Moved General and Desktop
cssstylesheet
4 Posts 2 Posters 2.3k 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.
  • W Offline
    W Offline
    whitecastleroad
    wrote on last edited by
    #1

    There are tons of posts where users are specifying how to tweak the CSS of existing widgets, such as the items of a QComboBox. What I am wondering is how they they know the various CSS classes and such of existing items? Read the documentation? Browse to source? or is there some debugger view I am missing like where is with WebKit/Chrome/Firefox/etc where you can visualize the active styles of a widget?

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

      Hi,

      Do you mean Qt's style sheet ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you mean Qt's style sheet ?

        W Offline
        W Offline
        whitecastleroad
        wrote on last edited by
        #3

        @SGaist Yes, that is the documentation to which I was referring. That is what I have been using. I just wanted to make sure there was not an equivalent to Chrome Inspector in Qt Creator that I was missing. I have spent hours trying to figure out how to keep an icon from touching the edge of a QComboBox to no avail. When dealing with web technologies, I'd choose the Inspector from the context menu, and then manipulate the stylesheet on-the-fly to see the results in realtime. I understand of no such thing exists within Qt, I just did not want to miss it if it did :)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIK, no, you didn't miss anything. Maybe KDAB's GammaRay has an option for that

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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