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

java - NullPointerException for a 2d Array -

asp.net - MVC [HandleError] HandleErrorAttribute called twice when using global logging -

c# - NameSpace Manager or XsltContent to parse aspx page -