PDA

View Full Version : QwtPlot cursor



hamid ghous
23rd December 2009, 11:29
Hi,

On my qwtplot the mouse cursor looks like this +.
I used myPlot->setCursor(Qt::ArrowCursor); but it didnt work. I also tried Qcursor::setshape() How can I make cursor like normal arrow on myPlot.

Cheers,

Uwe
23rd December 2009, 13:36
myPlot->canvas()->setCursor(...);

Uwe

liversedge
15th February 2015, 09:36
myPlot->canvas()->setCursor(...);


Sorry to resurrect an ancient thread, but seems like the best place to ask this (it appears high in a google search).

How do you change the cursor colour when over a canvas ?

The reason I ask is that on Windows when I have a dark canvas I get a black cursor that is very hard to see.

Thanks,
Mark

Uwe
15th February 2015, 12:06
And what exactly do you need to know, what has not been already answered in this thread ?

Uwe

liversedge
15th February 2015, 13:28
How to set the cursor color.

Uwe
15th February 2015, 16:20
See QWidget::setCursor(). There is nothing of value I could add, that is not covered by the docs of QCursor.

Uwe

AlekseyK
3rd March 2016, 06:30
How to set the cursor color.
Change cursor pixmap like this:


canvas()->setCursor(QCursor(QPixmap(":/resources/red_cursor.png")));