I
I
Igor Che2016-01-29 16:10:10
Python
Igor Che, 2016-01-29 16:10:10

Why does PyQt specify ObjectName?

When I create a layout in the Qt Designer, it sets the ObjectName.
self.label.setObjectName("label")
What is this for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zaswed, 2016-01-29
@chewarer

for example in css styles

QPushButton#exit_button {
    border-image: url(resources/icons/64/exit.png);
}
QPushButton#config_button {
    border-image: url(resources/icons/64/config.png);
}

config_button and exit_button object names

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question