Nominate our 2022 Qt Champions!

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.


    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