I'm using Qwt6 SVN and I want to have a "Zoom In" action in a right-click context menu, which should take a rectangle of some size (say, 100x100 px) around the cursor position and zoom in on that. I'm using QwtPlotZoomer (I know that there's also QwtPlotMagnifier, but I need a single zoom stack).

I can't figure out what to pass to QwtPlotZoomer::zoom(const QRectF &rect), all I have is a mouse position as provided by customContextMenuRequested(QPoint) signal.

Thanks in advance!

P.S. I tried constructing a rectangle around that position and passing that, but it didn't work (didn't think it would).