Cursor handling improvements, qtutils