How do I catch the PyQt5 QSplitter.resizeEvent?

111 Views Asked by At

I can catch the user resizing or repositioning the window simply by defining functions:

def resizeEvent(self, event): ...
def moveEvent(self, event): ...

But I also have 2 QSplitter, and would like to know any new split the user has applied to make it also a default for the next start. QSplitter also has a resizeEvent(), but I can't catch it, because it is already used by the apparently higher ranking functions above.

How can I get hold of QSplitter's resizeEvent?

I now use as a workaround def paintEvent(self, event):... which does allow me to get the needed info, but it feels a bit clumsy :-/

0

There are 0 best solutions below