Rotate the camera in qt3d



  • Hi, I want to rotate the camera around an object with buttons in any axis to create a 3D navigator: Up, Right, Down, Left. So, I should control the camera via mouse and buttons.
    I tried with some calcs with Math.sin and Math.cos, but... it doesn't work.
    Help please



  • Well, in Qt3D, a class named "QGLCamera" is available, you can use pan(), tilt() and rotate() method to rotate camera by different axis.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.