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

QBoxLayout::insertLayout() crashes if other layout already has parent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 4.8.4, 4.8.x
    • Widgets: Layout
    • None
    • 146658a10f290603470b800d71b778239e764312 c0688f4117304b4828796aa9489ca2c0d50c9886

    Description

      QBoxLayout::insertLayout() calls addChildLayout(), which may fail if the child layout already has other parent, but insertLayout() continues inserting the layout into its private item list nonetheless.

      Instead, insertLayout() should also fail if addChildLayout() fails. Alternatively, layout re-parenting should be implemented (see QTBUG-24420).

      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
              jleben Jakob Leben
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes