[MeeGo-touch-dev] Using Native Qt widget and Qcamera in Meegotouch application

Michael Hasselmann michaelh at openismus.com
Wed Sep 8 14:38:31 PDT 2010


On Thu, 2010-09-09 at 00:10 +0300, Michael Hasselmann wrote:
> On Wed, 2010-09-08 at 23:49 +0300, Ville M. Vainio wrote:
> 
> > Inheritance goes like this:
> > 
> > QGraphicsProxyWidget >  QGraphicsWidget > QGraphicsLayoutItem
> > 
> > unless I misunderstood something?
> 
> >From http://doc.trolltech.com/4.6/qgraphicslayoutitem.html
> 
> "#include <QGraphicsLayoutItem>
> 
> Inherited by QGraphicsLayout and QGraphicsWidget."
> 
> → QGraphicsLayoutItem is a base class, ie, interface.

Disregard that - obviously, I cant read. And yes - to my own surprise
QGraphicsProxyWidget is inheriting it correctly already ;-)

So back to the example code:
--
QGraphicsWidget *w = new QGraphicsWidget;
QGraphicsLinearLayout *l = new QGraphicsLinearLayout(Qt::Vertical, w);
QGraphicsProxyWidget *button = w->scene()->addWidget(new QPushButton);
l->addItem(button);
--

This compiles just fine in my sbox target - sorry for the confusion.




More information about the MeeGo-touch-dev mailing list