PDA

View Full Version : QDockwidget



codeman
24th October 2012, 13:55
Hello friends,

how can I style the background of the header section, after I add a titlebarwidget to the header. My previous added style seems to go obsolete after I add the titlebarwidget to the dockwidget.

Setting this:


QString style = "QDockWidget::title { "
"background: #661166;"
" }";

to my dock seems to going inactive after adding titbarwidget.

Yours,

cbamber85
4th November 2012, 11:25
... after I add the titlebarwidget to the dockwidget.

If your are using a custom titlebar, you need to style your custom title bar - not the default one in QDockWidget.