Search code examples
qteventspaintevent

Override widget 's paint event within MainWindow


I have a widget container I wish to manually paint. However, it is located within my GUI's MainWindow class.

Is there any way I can register on the paint event for a specific QWidget, so my own function will be called ?


Solution

  • Look for eventFilter. It will help you