Hi
How to find and delete line/block from qtextedit which content for example Char 'A'.
Regards
Artur
Hi
How to find and delete line/block from qtextedit which content for example Char 'A'.
Regards
Artur
Hope this should help
Qt Code:
QTextEdit textEdit; textEdit.setPlainText( "How are you today\n" "I am not A Visible\n" "I am not a good\n" "I am A\n" "I am a\n" "I am B"); int i = 0; while(i < lines.size()) { if(line.contains('A')) { lines.removeAt(i); } else { i++; } } textEdit.setPlainText(lines.join("\n")); textEdit.show();To copy to clipboard, switch view to plain text mode
When you know how to do it then you may do it wrong.
When you don't know how to do it then it is not that you may do it wrong but you may not do it right.
Bookmarks