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:
//.h
//....
protected:
//...
//.cpp
//...
{
//code that should be executed when MainWindonw fires a resizeEvent();
}
//.h
//....
protected:
void resizeEvent(QResizeEvent *event);
//...
//.cpp
//...
void MainWindow::resizeEvent(QResizeEvent *event)
{
//code that should be executed when MainWindonw fires a resizeEvent();
}
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
Bookmarks