- 主题:pyqt5输出到textEdit,如何有输出到控制台一样的效果,及时输出
能给个例子看看吗?
【 在 leaf918 的大作中提到: 】
: 我用了类似功能,要用一种高效的append 方法,在overstack上看看
--
FROM 120.242.252.*
你这个是Python代码吗?
【 在 leaf918 的大作中提到: 】
: void ViewCapacitor::new_msg_handler(QString msg) {
: qout05 << QString("sender thread %1,inform, on thread %2")
: .arg(sender()->thread()->objectName())
: ...................
--
FROM 114.99.186.*
谢谢大佬的回答,现在才发现,直接在 循环中插入个 processEvents 就行了。每次循环都会刷新界面
【 在 ToSimplicity 的大作中提到: 】
: 另一种是做个“控制台任务thread”
: 在GUI thread实现更新屏显:
: def update_display_widget_console_like(message):
: ...................
--
FROM 120.242.253.*