bdesham
bdesham

Reputation: 16089

How do I change the cursor used when the mouse pointer is over a QwtPlot?

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?

Upvotes: 2

Views: 1021

Answers (1)

bdesham
bdesham

Reputation: 16089

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

canvas()->setCursor(Qt::ArrowCursor);

Upvotes: 3

Related Questions