New KTabWidget

Zack Rusin zack at kde.org
Thu Feb 27 06:54:25 GMT 2003


On Wednesday 26 February 2003 13:59, Jason Keirstead wrote:
> On February 26, 2003 02:53 pm, Zack Rusin wrote:
> > This is simply impossible.One could make it look "kind-of" like
> > tabs but never like the actual style drawn tabs (because it's
> > impossible to derive the damn thing from QTabBar because of it's
> > messed up drawing routins). The only way to do it properly is to
> > actually fix QTabBar/QTabWidget.
> >
> > Zack
>
> This isn't really true, you can inherit from QTabBar and re-implement
> the paintLabel and paint methods, basing them on the current QTabBar
> source but adding code and correcting problems as needed.

You completely missed the point. To draw the close button on the far 
right you need that space and you can never get it because QTabBar will 
draw navigational buttons there. They are private and there's no way to 
change those drawing routines, making the derivation widget way to 
limited.

Zack

-- 
"There is hope... but not for us." -Kafka 





More information about the kde-core-devel mailing list