PDA

View Full Version : QToolBar Stylesheet



guilugi
3rd July 2007, 14:32
Hi there,

I'd like to apply a background image to customize a little my toolbars, and I set this stylesheet :


qApp->setStyleSheet(QToolBar{background-image: url(":/mybg.png")};


It works fine, except on the grip zone, which is used to drag the toolbar anywhere in the workspace.
And I don't know how to apply the background to this zone : I tried something like QToolBar > *, without effect.

Any hint ?

Thanks,
Guilugi.

wysota
5th July 2007, 10:16
Try QToolBar::handle { ... }

guilugi
5th July 2007, 11:47
Thanks, it works great ;-)