Hi! 2011/1/1 Algis Kabaila <[email protected]>: > 2. The Qt Designer produced files have many statements similar > to this: menubar.setObjectName("menubar") > What practical effect has the "setObjectName" ? > I can not see it as the program runs as well with statements > with "setObjectName" removed.
The object name can be retrieved by other objects (probably using "objectName()"), whereas the name in Python (i.e. "menubar") is just a reference to it (like a pointer if you like) - the object is "bound" to a name in the local (or global) namespace, but that name is not unique (you could say "menubar2 = menubar", and both names would refer to the same object). HTH. Thomas _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
