[Qt-interest] Adding widget to QGraphicsView

Yuvaraj R yuvaraj at ongobiz.com
Wed Jul 22 08:54:52 CEST 2009


Hi All

I am newbee to Graphics side..

I tried to add the widget to QGraphics View with the below Code.

QGraphicsScene *scene= new QGraphicsScene(this);

ui->graphicsView->setScene(scene);

ui->graphicsView->setCacheMode(QGraphicsView::CacheBackground);

Ui_Form *m_ui = new Ui_Form;

QWidget *wid = new QWidget;

m_ui->setupUi(wid);

ui->graphicsView->setScene(scene);



Here How do i add the Widget to QgraphicsScene.



Please Help me





Advance Thanks



Yuvaraj R
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/10222b19/attachment.html 


More information about the Qt-interest-old mailing list