Warning: QTextCursor::setPosition: Position '5' out of range
