Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经改变了一个QGraphicsView使用的光标:
QGraphicsView
graphicsView->setCursor(QCursor(Qt::CrossCursor));
但我不希望光标在此图形视图的滚动条上发生变化。
关于如何做的任何想法?
这应该可以解决问题:
graphicsView->verticalScrollBar()->setCursor(QCursor(Qt::ArrowCursor)); graphicsView->horizontalScrollBar()->setCursor(QCursor(Qt::ArrowCursor));