To replace text of TextBlock by my text i use:
cursor = QTextCursor(block);
сursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor);
cursor.insertText(newText);
But is real slowly . Any ideas?
To replace text of TextBlock by my text i use:
cursor = QTextCursor(block);
сursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor);
cursor.insertText(newText);
But is real slowly . Any ideas?
Cut and Run
QString::replase() doesnt help?
a life without programming is like an empty bottle
i work with QTextDocument
so i think QString::replace is not real useable
hard to find text to replace if many equal lines
Cut and Run
Bookmarks