M
M
Mikhail Bolev2021-05-10 08:12:45
PyQt
Mikhail Bolev, 2021-05-10 08:12:45

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 question

Ask a Question

731 491 924 answers to any question