Change QWidget to QGraphicsItem
hi to all,
I have a proble there is any way to change QWidget to QGraphicsItem .
Basically i made a Pyramid with the held of opengl's QGLWidget.
Now i want to add this widget to my QGraphicsScene ...
but how will i do i don't know .
so pls help me to overcome this problem.
Thanks
Ashish Kumar Saryar:confused:
Re: Change QWidget to QGraphicsItem
It's not really possible to make this work (at least not well) until in the upcoming Qt 4.4. If you download a snapshot from ftp.trolltech.com/qt/snapshots you can try two new classes, QGraphicsWidget and QGraphicsProxyWidget, which are provided to make life easier for you.
Re: Change QWidget to QGraphicsItem
actually i have to draw a pyramid with 3d .. and i have to show on qgraphcsscene or qgraphics ..
if u haveany idea pls share with me
Re: Add QGLWidget to view
QGLWidget is inherited from QWidget, so you can use the QWidget::show() function to display the widget.
Also if u have a graphicsview, u can alter its rendering using setViewPort() function. Refer to the 40000 chips demo program in the Qt Demos
Re: Add QGLWidget to view
{ Threads merged }
Do not start new threads on the same subject, please.