c++qt3dqt3dqrect

Is there 3D analogy for QRect in qt?


Basically, the tile sums up the question - I am wondering if there is any build in qt class similar to QRect, but for 3D object (to describe a box rather then rectangle)?


Solution

  • Basically, the tile sums up the question - I am wondering if there is any build in qt class similar to QRect, but for 3D object (to describe a box rather then rectangle)?

    Sure, there is.

    The desired class is currently in Qt3D, although it is not yet re-released again with Qt 5.

    I have been an active user of this class in 3D world simulation projects, and it works pretty okay.

    QGLCube Class Reference

    There is actually even a 3D base QML item in there exposed if you are willing to go down that way:

    QML Item3D Element