Add text to QPlainTextEdit in PyQT (the result is a status log)

后端 未结 2 1235
庸人自扰
庸人自扰 2020-12-11 06:02

Iam trying to build a StatusLog, every move that happens on application. For example, the user clicked in the button1, the progressBox must receive a string like \"user cli

相关标签:
2条回答
  • 2020-12-11 06:27

    Try insertPlainText() instead. The documentation does not mention insertText so the error is quite descriptive.

    0 讨论(0)
  • 2020-12-11 06:32

    You'd need to use the .appendPlainText(text) function to do it. Here's the documentation for it.

    0 讨论(0)
提交回复
热议问题