c++qt

What is the best way to know if a QObject name was changed


QObject::setObjectName method is not virtual. No specific signals are emitted when the setObjectName call is made.


Solution

  • If you are using Qt 5, there's a objectNameChanged signal. But not in Qt 4.