From 4767769cb85aeaef6ea92979cb8be403bd293618 Mon Sep 17 00:00:00 2001 From: qydysky Date: Fri, 2 Oct 2020 06:26:18 +0800 Subject: [PATCH] 28 --- Reply/qt.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Reply/qt.go b/Reply/qt.go index 6aff085..c644937 100644 --- a/Reply/qt.go +++ b/Reply/qt.go @@ -53,6 +53,7 @@ func Qtdanmu() { QtDanmuChan = make(chan string, 10) QtOn = true // var list []string + t.TextCursor().InsertText("==开始==") for QtOn { select{ case i :=<-QtDanmuChan: @@ -100,10 +101,10 @@ func new(pare *widgets.QWidget, layouts *widgets.QGridLayout) (t *widgets.QTextE func text(s string, pare *widgets.QTextEdit) { c := pare.TextCursor() + c.InsertBlock() c.BeginEditBlock() c.InsertText(s) c.EndEditBlock() - c.InsertBlock() if pare.Document().BlockCount() > Qt_MaxMun { c.MovePosition(gui.QTextCursor__Start, gui.QTextCursor__MoveAnchor, 1) // c.BeginEditBlock() -- 2.39.2