MyTetra Share
Делитесь знаниями!
Время создания: 16.04.2017 12:01
Раздел: Python - PyQt5 - Структура классов - PyQt5 - QtCore - QMetaObject
Запись: xintrea/mytetra_db_mcold/master/base/1492333298f31kd36thk/text.html на

void QMetaObject::connectSlotsByName(QObject *object)

Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form:

void on_<object name>_<signal name>(<signal parameters>);

Let's assume our object has a child object of type QPushButton with the object name button1. The slot to catch the button's clicked() signal would be:

void on_button1_clicked();

If object itself has a properly set object name, its own signals are also connected to its respective slots.



Так же в этом разделе:
MyTetra Share v.0.58
Яндекс индекс цитирования