lni
21st August 2013, 09:29
Hi,
I know I can use style sheet for QWidget, such as:
QWidget#foo {
font-family: Arial;
font-weight: normal;
font-size: 9px;
}
Is there a way to use style sheet for QGraphicsItem or QGraphicsWidget? QGraphicsWidget has setStyle method...
For instance, I need:
QGraphicsWidget#widget1 {
font-family: Arial;
font-weight: normal;
font-size: 20px;
}
But this doesn't work.
Any suggestion is appreciated.
I know I can use style sheet for QWidget, such as:
QWidget#foo {
font-family: Arial;
font-weight: normal;
font-size: 9px;
}
Is there a way to use style sheet for QGraphicsItem or QGraphicsWidget? QGraphicsWidget has setStyle method...
For instance, I need:
QGraphicsWidget#widget1 {
font-family: Arial;
font-weight: normal;
font-size: 20px;
}
But this doesn't work.
Any suggestion is appreciated.