PySide2 Python Panel setMouseTracking not working on child

   1634   1   0
User Avatar
Member
30 posts
Joined: 10月 2011
Offline
I'v'e sub classed my own comboBox and inserted it in a QTableWidget cell. My mouseMoveEvent() in my custom combobox doesn't seem to be called when running though a python panel. If I run the QApplication out side of Houdini my mouseEvents are being called fine on the combobox.

I've tried setting setMouseTracking(True) on the parent interface as well and that works. Is there something special i need to do with the python panel to get a child widgets mouse tracking to pick up?
Cheers
User Avatar
Member
30 posts
Joined: 10月 2011
Offline
Hmmm so it looks like I have to set the setMouseTracking(True) on the QTableWidget that holds the combobox. Any idea why I need to do this for the python panel and not the QApplication?
  • Quick Links