Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Do stylesheet subcontrols ignore in(activity)?

    General and Desktop
    1
    1
    395
    Loading More Posts
    • 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.
    • M
      MartinBriza last edited by

      I've been facing this problem when creating a Qt 4.8 stylesheet:

      Suppose I have the following style:
      @QMenuBar::item:active {
      color: white;
      }
      QMenuBar::item:!active {
      color: black;
      }@

      When changing focus of the window, the color of the font is not changed, despite the pseudostate being perfectly fine when used for controls.

      It seems that subcontrols aren't affected (I noticed the behavior in borders of QSlider::add-page where the workaround is not as simple).

      So, the question is: Please, am I doing something wrong or is this a bug?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post