Hi,

how can an own widget (subclass of QWidget) gain the ":hover" settings from the style sheet? E.g.:
Qt Code:
  1. void MyOwnWidget::paintEvent(QPaintEvent*)
  2. {
  3. QPainter p(this);
  4. p.drawText(rect(), Qt::AlignCenter, "foo bar");
  5. }
To copy to clipboard, switch view to plain text mode 
gets the definitions from
css Code:
  1. MyOwnWidget
  2. {
  3. color: #dddddd;
  4. font-size: 36px;
  5. }
To copy to clipboard, switch view to plain text mode 
but not from
css Code:
  1. MyOwnWidget:hover
  2. {
  3. color: #ffdddd;
  4. font-size: 8px;
  5. }
To copy to clipboard, switch view to plain text mode 
How could one fetch these settings? Any hints?

Thanks, Lykurg