Hi,
I'm trying to re-implement the mousePress event handler in a dialog, and send the events received by it to its parent widget.
I've tryied posting the event to the parent QObject (a widget), and also sending the event (QApplication::sendEvent), but with no success.
The idea is that when the dialog receives a mousePressEvent, it closes itself and forwards the mouse event to the parent widget .Code:void MyDialog::mousePressEvent(QMouseEvent *event) { this->close(); QApplication::postEvent(this->parent, event); }
Any suggestions?
Thanks in advance,
JCC.



