Please tell me how to design 3 cube by using QPainter?
I need to design a line that will look as in 3D ,so i think that if i create the line in a cube
, then it can be possible.
please provede me some help.
Please tell me how to design 3 cube by using QPainter?
I need to design a line that will look as in 3D ,so i think that if i create the line in a cube
, then it can be possible.
please provede me some help.
I don't understand clearly. Are you (1) trying to create a 3-D looking cube using lines? Or (2) trying to create a 3-D looking line, with a square cross-section? And either way, what is determining the position and orientation of the cube or line you wish to draw -- what control information do you have?
I just want to make a 3D looking line.
please if you can help....
So you want a line or a cube? Or maybe you want to project a 3D line onto a 2D canvas?
Use QtOpenGL module instead of QPainter.
anupam (9th October 2012)
So you want to project a 3D shape onto a 2D canvas. If you want to do that manually then google for appropriate math. What you want is called projection.
anupam (9th October 2012)
Bookmarks