Do the names of Qt's objects have to be unique?

Viewed 3255

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.

2 Answers
Related