Does the QObject::objectName
property have to be unique for the whole application? For example, let's say I have button somewhere called "new", then somewhere else I'm going to create a QShortcut also called "new". Is it going to cause a problem to Qt?
I know about properly naming objects (something called "new" is not a good name) but I just want to know whether I need to be extra careful or not.
Object names are not required to be unique. However, there are at least two things I can think of to consider when naming your objects:
Other things to consider:
QTimer
s and such.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With