QTabWidget change request

Thomas Zander zander at kde.org
Thu Feb 15 18:17:14 GMT 2007


On Thursday 15 February 2007 18:34, Robert Knight wrote:
> One persistant offender is QTabWidget.  QTabWidget always has a border
> which cannot be turned off.  This border is appropriate in some cases,
> but leads to ugly results in others.

One thing that has been done in kde4 already is make the KPageDialog 
automatically decide between having a tab and having a standalong widget.
This solves the problem of having a dialog with just 1 tab.

In fact; I think this is a good solution to a lot of the problems you state. I 
hope you agree that the border is not a problem when there are multiple tabs. 
And if that is the case we need a better way to remove the tabWidget when its 
unneeded.

The problem you noted of altering the spacing between the border of the 
tabWidget and the pageWidget is not a trivial one. You have to alter the 
embedded widget which is not always a good idea. I'd like to avoid doing that 
so we can avoid having lots of corner cases...

So, my answer to your email is basically that we should not alter the 
QTabWidget, but to have a simple way of removing the tabWidget from the 
widget hierarchy if there are less than two tabs remaining.
-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070215/693e607f/attachment.sig>


More information about the kde-core-devel mailing list