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

QPlaceHolderItem is not deleted when calling QDockAreaLayoutInfo::deleteAllLayoutItems()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.9.3
    • Widgets: Layout
    • None
    • Windows

    Description

      Using save-/restoreState operation in some cases I was wondering why the saved byte stream growth. This happens, when playing with dockables that are created dynamically during runtime and the number varry from time to time.

      I noticed that the QPlaceHolderItems are not deleted in all cases. A QPlaceHolderItem is only deleted when calling QDockAreLayout::restoreDockWidget explicitly.

      Using dockables dynamically it would be helpful to have more control over the QPlaceHolderItems within the specific layout objects of the main window. 

      Attachments

        1. main.cpp
          3 kB
          Alfonso Gambuzza
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            fonsissimo Alfonso Gambuzza
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes