ashishsaryar
20th February 2008, 07:05
hi to all
QPyramidTool *pPiramidObj = new QPyramidTool( );
m_scene->addItem( qobject_cast<QGraphicsWidget *>(pPiramidObj) );
here QPyramidTool is QGlwidget.
i have made pyramid by using it .
m_scene is QGraphicsScene .
I am adding this QGLWidget to this scene .
It didn't give any error but i doesn't show.
I have to seen this pyramid on my scene how it will become possible .
Pls share your ideas.
Thanks...
QPyramidTool *pPiramidObj = new QPyramidTool( );
m_scene->addItem( qobject_cast<QGraphicsWidget *>(pPiramidObj) );
here QPyramidTool is QGlwidget.
i have made pyramid by using it .
m_scene is QGraphicsScene .
I am adding this QGLWidget to this scene .
It didn't give any error but i doesn't show.
I have to seen this pyramid on my scene how it will become possible .
Pls share your ideas.
Thanks...