Hello!

I'm having a situation where I put some QwtPlot inside a QSplitter in the .ui and that needs to be resize() each time the size of the QSplitter changes. For that, I guess, I need to extend the QSplitter resizeEvent() adding there the code to resize the QwtPlot each time its fired.

The problem is that I have no idea of how to do that, since resizeEvent() is not a signal or slot of QSplitter. I know how to do the edit the resizeEvent() when I'm working in the .h and .cpp of a given class:

Qt Code:
  1. //.h
  2.  
  3. //....
  4. protected:
  5. void resizeEvent(QResizeEvent *event);
  6.  
  7. //...
  8.  
  9. //.cpp
  10.  
  11. //...
  12.  
  13. void MainWindow::resizeEvent(QResizeEvent *event)
  14. {
  15. //code that should be executed when MainWindonw fires a resizeEvent();
  16. }
To copy to clipboard, switch view to plain text mode 


, but not "externaly". So how should I do this? Remember though: I want to "edit", so-to-speak, the resizeEvent() of a specific QSplitter, not making this valid to the entire class.


Thanks,

Momergil