QTabWidget change request

Robert Knight robertknight at gmail.com
Thu Feb 15 18:38:38 GMT 2007


> I hope you agree that the border is not a problem when there are multiple tabs.

In is a problem when the tab widget fills the entire window in the
case of Konsole or Konqueror.
In both those cases, the border at the bottom of the screen looks unpleasant.

It is also inappropriate if there are already other visual borders
between the area occupied by the tab widget, and other widgets in the
user interface.  This will occur in many applications which use a tab
widget as their central display widget, such as KDevelop for example.

Regards,
Robert.


On 15/02/07, Thomas Zander <zander at kde.org> wrote:
> 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
>
>




More information about the kde-core-devel mailing list