Quote Originally Posted by nlgootee View Post
What is the name of the variable holding the object?
Hmm, I would have assumed you had had a look at some Python tutorial before starting on an actual application.

The name of the variable is the identifier you are writing on the left side of the assignment expression.
Qt Code:
  1. foo = QLineEdit()
To copy to clipboard, switch view to plain text mode 
Local variable named "foo"
Qt Code:
  1. self.foo = QLineEdit()
To copy to clipboard, switch view to plain text mode 
Class instance variable named "foo"

Quote Originally Posted by nlgootee View Post
I thought that it was the objectname.
The object name is a property of the object provided through its QObject ancestry, similar to how the font is provided through its QWidget ancestry, etc.

Cheers,
_