Hi,
I am using QGraphicsView for my application. I allow panning on ctrl+mousemove event. And when I release ctrl key, the view's drag mode is set to NoScroll. But in this case also when I press left mouse button , the mouse icon is changed to Qt::OpenHandCursor, which usually comes if the view allows panning.
Does any one know how to deal with this issue.
Below is the code snippet
Qt Code:
{ if (event->key()==Qt::Key_Control) { m_DragMode=NO_DRAG; } } { //ctrl key is pressed if (event->key()==Qt::Key_Control) { m_DragMode=SCROLL_HANDLE_DRAG; } }To copy to clipboard, switch view to plain text mode
Bookmarks