'Rotation using Transformation Matrix

Can someone please explain to me what does this function do :

void QMatrix4x4::rotate (   const QQuaternion &     quaternion  )   

In the documentation, it's written that it multiples this matrix by another that rotates coordinates according to a specified quaternion. The question is which matrix is " this matrix" ? does it calculate a rotation matrix ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source