[Qt-interest] Adding widget to QGraphicsView

Yuvaraj R yuvaraj at ongobiz.com
Wed Jul 22 08:58:37 CEST 2009


Sorry for my silly qustion.. i found my self..

Thanks

Yuvaraj R

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/6f99a060/attachment.html 


More information about the Qt-interest-old mailing list