I
I
Ivan2017-03-03 06:25:23
Python
Ivan, 2017-03-03 06:25:23

How to avoid losing focus in QTextEdit (PyQT)?

After inserting a line in a TextEdit in PyQT, the cursor position is lost.
self.ui.textedit.insertPlainText('string');
I would like the cursor to be positioned after the inserted line after insertion.
How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2017-03-03
@iwqn

https://www.google.ru/search?q=qtextedit+set+curso...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question