Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Use of operators in QVector3D



  • Hello,

    I am a little confused that how to use operators from the desired class.

    I want to use this operator in my class.

    cf4228ea-b541-401f-b43c-0696fb206e37-image.png

    How to implement this operator in class?

    Thank you,



  • QVector3D source;
    QMatrix4x4 matrix;
    QVector3D target = source * matrix;

    You use it the way you'd use any expression operator that takes two arguments.


Log in to reply