[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QTabWidget change request
From:       Thomas Zander <zander () kde ! org>
Date:       2007-02-15 18:17:14
Message-ID: 200702151917.19266.zander () kde ! org
[Download RAW message or body]


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

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic