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

QLabel::setText lead to QAccessibleWidget crash

    XMLWordPrintable

Details

    • Windows

    Description

      result:

      QWindow *QAccessibleWidget::window() const
      {
          const QWidget *w = widget();
          Q_ASSERT(w);
          QWindow *result = w->windowHandle();
          if (!result) {
              if (const QWidget *nativeParent = w->nativeParentWidget())
                  result = nativeParent->windowHandle();
          }
          return result;
      }
      

      this code crash, in release mode assert no effect but w is NULL.

       

      QLabel::setText lead to "NameChanged" QAccessibleEvent, then crash

       

      here is call stack

       

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              jaredtao jared tao
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes