Hello list, I want to Rotate my QGraphicsItem by the axis behind the screen. As graph follow: [cid:image001.gif@01CD9107.6082B5F0]
My code like this: QGraphicsItem* m_item = new QGraphicsItem_subclass(); QGraphicsRotation* m_rotation = new QGraphicsRotation();; QPropertyAnimation* m_animation = new QPropertyAnimation(NULL,"angle");; m_rotation->setAxis(QVector3D(0.0, 1.0, 0.0)); m_rotation->setOrigin(QVector3D(m_item.boundingRect().width()/2, 0.0, 100.0)); m_item ->setTransformations(QList<QGraphicsTransform*>() << m_rotation); m_animation->setTargetObject(m_rotation); I found that it was not performed as expected,but : [cid:image002.gif@01CD9108.913FB610] How can I do , so it can performed as expected (first graph)? Thank you.
<<inline: image001.gif>>
<<inline: image002.gif>>
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest