PDA

View Full Version : QTabWidget and closeButton



!Ci
24th January 2007, 09:35
Is there easy way to add a small icon in each tab, which will be used to close it? Do I need inherit class or is there any suitable method?

e8johan
24th January 2007, 09:53
You can use the setCornerWidget (http://doc.trolltech.com/4.2/qtabwidget.html#setCornerWidget) method to add a close button to the far right - but I guess that you want one on each tab. That will probably require some sub-classing.

!Ci
24th January 2007, 11:12
I thought to put close button on each tab but it's enough right now.
Thank You