Dec-03-2019, 01:27 AM
Thanks for the response.
So to solve my problem I would need to install an event filter on any child widgets and monitor their enter and leave events to trigger some method in the parent widget.
Yes if you could explain why the changes you made are important that would be great, one thing I've struggled to find information on is best practices for PyQt. A side note, while in this example I used PyQt5, I mainly use the Qt.py module and everything executes inside AutoDesk Maya (i.e. Python 2.7) in case that makes any difference.
Also for my layouts, I've recently started writing it as:
So to solve my problem I would need to install an event filter on any child widgets and monitor their enter and leave events to trigger some method in the parent widget.
Yes if you could explain why the changes you made are important that would be great, one thing I've struggled to find information on is best practices for PyQt. A side note, while in this example I used PyQt5, I mainly use the Qt.py module and everything executes inside AutoDesk Maya (i.e. Python 2.7) in case that makes any difference.
Also for my layouts, I've recently started writing it as:
layout = QVBoxLayout(widget)Rather than calling the setLayout() method. Is this fine?