PDA

View Full Version : QDockWidget and icons



Patze
16th January 2009, 12:51
Hi everybody

is there a way to add icons to the tabs of nested dock widgets. I'm looking for something like setTabIcon(...) but for QDockWidgets. setWindowIcon seems to do nothing at all.

jpn
16th January 2009, 16:13
I don't think it's supported feature by QDockWidget, but perhaps you can do the customization trick with style sheets.

jacmoe
2nd July 2009, 21:59
I've been trying to do this, with no success...

The problem is that a QDockWidget looses it's objectname when it's docked.
Because it's no longer a QDockWidget, but a tab in a QTabBar.

I've set a stylesheet on the dockwidget, but it's ignored.

Anyone tried to set icons for the tabs of docked dockwidgets? :)

I've seen that a QTabBar doesn't have any function for getting a particular tab by name or object, only by index?

If you need more information, yell.