I'm using the PySide2 package and found that the overwriteMode
won't work in my code. Here is what I wrote:
self.ui.textBrowser.setOverwriteMode(True)
self.ui.textBrowser.insertPlainText('test1\ntest2\ntest3')
self.ui.textBrowser.moveCursor(QTextCursor.Start)
self.ui.textBrowser.insertPlainText('hhh')
I used Qt-Creator to design my GUI and my settings for the QTextBrowser looks like that:
I got the following output:
As you can see, the first line should be 'hhht1' but it gives 'hhhtest1'.
I'm testing this with PySide2 version 5.11.2 on a Windows 10.
I am new to Qt and can anyone please help me out? What am I missing? Thank you!