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

Layout Item Is Not Properly Deleted if Layout Is Disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.1, 6.8.0 FF
    • 6.8
    • Widgets: Layout
    • None
    • All
    • ef8e548cf (dev), 8f27ca234 (6.7)

    Description

      A layout item for a child widget is not deleted if the layout was deactivated before the child widget is deleted. The ChildRemoved event is ignored in this case due an early return in QLayout::widgetEvent(QEvent *e).

      The application crashes the next time the layout is activated and a method like totalMinimumSize() ist called because the orphaned element refers to a now invalid widget.

      The bug also exists in 5.15.2 and later.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            marvinl marvinl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change