I need to remove a specific line from QTextEdit (NoWrap option is active) manually from the program. I found a solution that explains how to delete the first row, but I wonder how I can delete the whole row at a specific index.
I also found a solution here Remove the line / block from QTextEdit , but I do not know what these blocks are. Do they represent separate lines or not? Should I iterate over these blocks and if I get the block at the given index, then delete it?
c ++ user-interface text qt qt5
Michal
source share