[Panel-devel] [PATCH] Plasma Layouts
Andreas Aardal Hanssen
ahanssen at trolltech.com
Tue May 22 09:29:39 CEST 2007
On Monday 21 May 2007 20:44, Aaron J. Seigo wrote:
> On Monday 21 May 2007, Matias Valdenegro T. wrote:
> i really wish we could avoid a Widget superclass, since that makes it
> difficult / impossible to add Qt-provided QGraphicsViewItems to the
> layouts.
> the problem i can see is that QGraphicsItem doesn't provide any size
> hinting information, which is understandable since it's a canvas
> implementation first and formost.
In Qt, that's solved by using layout items that contain and manage other
items, instead of using cross-inheriting (the latter arguably being a better
solution). You still need to solve the problem with missing geometry
accessors in QGraphicsItem, though.
Do you need to support regular graphics items in layouts, btw? Isn't it much
easier to define a base Widget item?
--
Andreas Aardal Hanssen / bibr - andreas . hanssen @ trolltech.com
More information about the Panel-devel
mailing list