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:

Qt Code:
  1. myDockWidget->setStyleSheet(QString::fromUtf8("QDockWidget::title { background: yellowgreen;}"));
To copy to clipboard, switch view to plain text mode 

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