Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-68126

线程异常

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.5.1
    • Core: Threads
    • None

    Description

      Qt Creator 3.5.1

      Based on Qt 5.5.1 (GCC 5.2.1 20151129, 64 bit)

       

      在子线程里调用主窗口部件出现问题。主线程生成子线程,传递的参数是主窗口的ui变量。问题是,在子线程调用QTextEdit::setText()方法的时候,线程出现异常中断,本来我还不信,然后调试很多次,确定问题就是这。同时我还做了个对比,在子线程里调用QTextLine::setText(),这是正常的。虽然QTextEdit和QTextLine是不同的类,但同样是文本输入组件,同样出现在一个线程里,QTextEdit操作异常,QTextLine操作正常

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            farmer Liang Jin Qian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes