wysotas question is well in place - however, your program is not moving the cursor:
Qt Code:
if (key == Key_Up) { posTmp=pCursor->pos()+posUp; pCursor->setPos(0,0); //<<<<<-------you always set position 0,0 cout<<pCursor->pos().rx()<<" "<<pCursor->pos().ry()<<endl; }To copy to clipboard, switch view to plain text mode
Bookmarks