dare
dare

Reputation: 662

change QCursor on scrollbar in QgraphicsView

I have changed the cursor on a QGraphicsView using:

graphicsView->setCursor(QCursor(Qt::CrossCursor));

but I don't want the cursor to change on scrollbars of this graphicsView.

Any idea on how to do?

Upvotes: 2

Views: 299

Answers (1)

Boris Dalstein
Boris Dalstein

Reputation: 7748

This should do the trick:

graphicsView->verticalScrollBar()->setCursor(QCursor(Qt::ArrowCursor));
graphicsView->horizontalScrollBar()->setCursor(QCursor(Qt::ArrowCursor));

Upvotes: 3

Related Questions