PDA

View Full Version : QGraphicsView arrow cursor



Alundra
17th October 2013, 15:19
Hi all,
There is a big problem on windows 8 when changing the cursor of QGraphicsView using that :


void CEditorNodeView::mousePressEvent( QMouseEvent* event )
{
QGraphicsView::mousePressEvent( event );
viewport()->setCursor( Qt::ArrowCursor );
}

void CEditorNodeView::mouseReleaseEvent( QMouseEvent* event )
{
QGraphicsView::mouseReleaseEvent( event );
viewport()->setCursor( Qt::ArrowCursor );
}

The arrow change to hand cursor to go back to arrow cursor on both situation, press and release.
That makes the rendering really bad. I hope Qt has a workaround to make the rendering better.
Thanks for the help