to the end of line of the selected line cursor.movePosition(QTextCursorthe start of the first selected line cursor.movePosition(QTextCursorin the selection, add " " to the start of each
Windows 7 SP1Qt 4.8.4
我使用QTextCursor抓取每个块的文本。我使用select(QTextCursor::BlockUnderCursor)抓取文本,然后使用movePosition(QTextCursor::NextBlock)转到下一个块。但是当我再次select(QTextCursor::BlockUnderCursor)时,我在QString中得到一个额外的垃圾字符,并且锚点已经移动到前一个块的末尾。* cursor = new QTextCursor</