PDA

View Full Version : Making QFrame hoverable



gruszczy
10th January 2009, 14:41
It seems that my class derived from QFrame is not emitting proper signals used by stylesheets hover. I want it to display a frame, when I hover over it. When I changed my class (the stylesheet selector) just to QFrame, the labels inside my widgets responded to that. When I removed hover pseudoclass from the selector, my class also responded to this (all widgets had borders). Do you know how can I make QFrame derived class hoverable?

maverick_pol
11th January 2009, 17:52
Hi,

Did you try the "Descendant Selector", like:



QFrame YourClass

Matches all instances of YourClass that are descendants (children, grandchildren, etc.) of a QFrame.