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

Calling setHidden() in the widgets destructor causes an application crash

    XMLWordPrintable

Details

    Description

      If QWidget::setHidden(bool hidden) is called in the widgets destructor the application crashes. The problem is that in src/gui/kernel/qapplication.cpp in function void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget), the widgetUnderCursor is the widget that was being deleted.

      The patch that fixes this bug is attached to this bugreport.

      Attachments

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

        Activity

          People

            kavi Kalle Viironen
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes