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