QtDanmuChan = make(chan string, 10)
QtOn = true
// var list []string
+ t.TextCursor().InsertText("==开始==")
for QtOn {
select{
case i :=<-QtDanmuChan:
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()