Have you checked if the two values are different?

E.g. make a qDebug() log output in the C++ function that implements drawText()?

Cheerss
_