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

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

XMLWordPrintable

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

      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).

        For Gerrit Dashboard: QTBUG-30758
        # Subject Branch Project Status CR V

            smd Jan Arve
            jleben Jakob Leben
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes