[Qt-interest] Adding widget to QGraphicsView
Chandru...
sekarwagmare at gmail.com
Wed Jul 22 09:00:25 CEST 2009
take a look at QGraphicsProxyWidget
On Wed, Jul 22, 2009 at 12:24 PM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/610f2b47/attachment.html
More information about the Qt-interest-old
mailing list