Answer the question
In order to leave comments, you need to log in
How to remove last line with QTextCursor?
I am learning to work with the PyQT6 library. There is a task to delete by means of QTextCursor the last added line in the document. Here is a part of the code:
self.textBrowser.append('Ошибка валидации\n')
A line has been added. Now I need to remove this line. How can I do it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question