[Qt-interest] problem in QGraphicsView() addWidget .
Chandru...
sekarwagmare at gmail.com
Fri Jul 17 14:49:53 CEST 2009
it too crashing spitting
*"QPainter::begin: A paint device can only be painted by one painter at a
time.
Segmentation fault*"
cant add a widget to a graphicsView() which been added as a widget by parent
graphicsView()
On Fri, Jul 17, 2009 at 5:33 PM, Sanderson Coelho <
sanderson.coelho at openbossa.org> wrote:
> You can make something like:
>
> QGraphicsScene scene(x, y, w, h);
> QGraphicsView view(&scene);
> MyWidget *mw = new MyWidget;
> mw->setPos(px, py);
> scene->addWidget(mw);
> view->show();
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090717/11362932/attachment.html
More information about the Qt-interest-old
mailing list