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

QAccessibleObject::childAt crash when child is NULL

    XMLWordPrintable

Details

    Description

      show an embed widget (from another process,use QWindow::from and QWidget::createWindowContainer) crashed in qaccessibleobject.cpp line127.

      // code placeholder
      for (int i = 0; i < childCount(); ++i) {
      QAccessibleInterface *childIface = child(i);
      Q_ASSERT(childIface);
      if (childIface->isValid() && childIface->rect().contains(x,y))
      return childIface;
      }
      return 0;
      

      As Qt assistant mention "Returns 0 when asking for an invalid child (e.g. when the child became invalid in the meantime).",  here child return NULL.

       

      Attachments

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

        Activity

          People

            frederik Frederik Gladhorn
            crowww Wang Brazen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes