Drag and Drop a 3D shape into a QGraphicsView and display -- how to?
-
Hi, all:
I'm trying to drag and drop a 3D shape into a QGraphicsView and display. Is there any examples for me to follow or use directly?
Cheers
Pei -
QGraphicsView is designed with 2d graphics in mind and does not support 3D. That being said, it can still be done, but you will have to do it on your own with regular OpenGL api calls.
-
[quote author="utcenter" date="1361894892"]QGraphicsView is designed with 2d graphics in mind and does not support 3D. That being said, it can still be done, but you will have to do it on your own with regular OpenGL api calls.[/quote]
Actually, it is called 2.5D :)
@jiapei100, if you are using a "MIME", QGraphicsView can actually mimic a 3D shape but depends on how you implement it (just mimic it and NOT to fully support it). 3D is supported in Qt via OpenGL.