QMatrix &QMatrix::rotate(qreal degrees)
Rotates the coordinate system the given degrees
Note that if you apply a QMatrix to a point defined in widget coordinates, the direction of the rotation will be clockwise because the y-axis points downwards.
Returns a reference to the matrix.
See also setMatrix().
这。。。看描述 你的y轴是倒过来的???WTF
解决办法
QMatrix4x4 matrix;
matrix.setToIdentity();
matrix.rotate(-1, 0, 1, 0);
matrix.scale(10, 10, 10);
view.setToIdentity();
view.lookAt(QVector3D(0,0,1.0),QVector3D(0,0,0),QVector3D(0,-1,0));
天空盒创建看上一篇文章