From: qydysky Date: Thu, 1 Oct 2020 22:26:18 +0000 (+0800) Subject: 28 X-Git-Tag: v0.0.0~5 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=4767769cb85aeaef6ea92979cb8be403bd293618;p=bili_danmu%2F.git 28 --- 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()