2

By default, the cursor changes to a crosshair when it’s within a QwtPlot on the screen. Calling

setCursor(Qt::ArrowCursor);

from within my QwtPlot subclass doesn’t have any effect. How can I change this cursor to something other than a crosshair?

bdesham
  • 15,430
  • 13
  • 79
  • 123

1 Answers1

3

You need to call setCursor on the plot’s canvas. From a QwtPlot subclass, for example,

canvas()->setCursor(Qt::ArrowCursor);
bdesham
  • 15,430
  • 13
  • 79
  • 123