Solved QTextEdit: how group a lot of operations? (or how convert QString<->QStringList)
-
Sometimes controls have methods beginUpdate/endUpdate od lock/unlock. How to prevent emit a 2000 textChanged() signal when :
for (int i=0; i<2000; i++) editor->insertPlainText("ab");
(alternatively: how change CString->vector of CStrings ->CString?)
-
-
Yes, QString and QStringList :
QStringList lines = text.split("\n"); string = lines.join("\n");