Styling ContextView boxes

Seb Ruiz me at sebruiz.net
Wed Jun 27 01:05:47 CEST 2007


On 27/06/07, Jeff Mitchell <kde-dev at emailgoeshere.com> wrote:
> > actually, i do not know if that is possible. i was looking through the
> > Qt Stylesheets page and all the stylesheets let you do is style
> > /widgets/---not any qobject. and QGraphicsItems are not widgets. in
> > fact, you
> > can't even put widgets on a QGV (not until Qt4.4, anyway).
>
> Is there a reason your QGraphicsItem can't also derive from
> QWidget/QObject?  I derive from QObject for PopupDropper items...since
> I'll only have a few the overhead isn't a big deal.

Sure, but a QWidget needs to be drawn on the screen. You can't draw
the item and the widget. We'd need to reimplement the paint methods
for the QGraphicsItems etc. (Maybe not such a bad thing, it would give
us more control)

Seb

-- 
http://www.sebruiz.net/


More information about the Amarok-devel mailing list