mstegehu
28th May 2010, 09:56
Hello,
When I want an additional style effect to the current style of a widget all standard style elements are 'discarded'. How can I keep the current style and just add something?
Example:
I want the titleBar of a dockwidget to be green in the background:
myDockWidget->setStyleSheet(QString::fromUtf8("QDockWidget::title { background: yellowgreen;}"));
The result is that I lose my original border and the text is placed on a different place.
How can I prevent the loss of original styles?
Regards,
Marcel
When I want an additional style effect to the current style of a widget all standard style elements are 'discarded'. How can I keep the current style and just add something?
Example:
I want the titleBar of a dockwidget to be green in the background:
myDockWidget->setStyleSheet(QString::fromUtf8("QDockWidget::title { background: yellowgreen;}"));
The result is that I lose my original border and the text is placed on a different place.
How can I prevent the loss of original styles?
Regards,
Marcel