I have a QwtPlot widget that shows a QMenu with some QActions when the user clicks on it with the right mouse button:
Now, I need to implement an automated function to test it.
How can I get access to the QMenu and QActions from the QwtPlot widget?
I already tried the command:
QTest::mouseClick(myQwtPlot, Qt::RightButton, Qt::NoModifier, QPoint(), 30);
But the QMenu doesn't appear.
Qt version 5.3.2