python - How to propagate changes from child widgets if any of the child have changes? -


मेरे पास एक QWidget है। और QWidget के अंदर, मेरे पास बहुत से अन्य QWidget s, जैसे: - QComboBox , QLineEdit , आदि ....

अब, मैं जानना चाहता हूं कि उपयोगकर्ता ने कोई भी परिवर्तन किया है ( उदा: - QLineEdit में कुछ लिखें, या < कोड> QComboBox , आदि .... ।)

क्या ऐसा करने का एक आसान तरीका है? या मुझे प्रत्येक विजेट के सिग्नल पर कब्जा करने की आवश्यकता है, जैसे ...

  QObject.connect (लाइनएडिट, सिग्नल ("टेक्स्टवर्ल्ड ()"), doSomething) QObject.connect (कॉम्बोबॉक्स, सिग्नल ("वर्तमान इंडेक्स चेंगड (इंट)"), डॉट्सिंग) ... ... ...    

हाँ, आपको मैन्युअल रूप से संकेतों को कनेक्ट करना है।

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -