
Originally Posted by
Giga
It rotates item around z-axis,
This is true.

Originally Posted by
Giga
while i need either x- or y-axis rotation
If you want a 3D rotation, you can use OpenGL.
Rotation in OpenGL is accomplished through the glRotate*() function, which is defined as:
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
To copy to clipboard, switch view to plain text mode
So you can provide the axis of rotation.
You can even try it for Qt 4.6 technology preview is released.
http://qt.nokia.com/developer/qt-4.6-technology-preview
Bookmarks