jeudi 25 août 2016

How to receive event whenever a QWidget is added to QApplication's widget tree?

I want to inspect something application wide. Specifically I'd like to inspect every widget that is added to the application.

Similar thing can be done in JavaScript/HTML, where you can add DOM mutation listener which fires on DOM changes.

Can I listen on added widgets upon QApplication? If not, what is best workaround available?

Aucun commentaire:

Enregistrer un commentaire