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. Do stylesheet subcontrols ignore in(activity)?

Do stylesheet subcontrols ignore in(activity)?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 509 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.
  • M Offline
    M Offline
    MartinBriza
    wrote on last edited by
    #1

    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
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved