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

Child widget does not delete its backing store when fullscreen is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.0
    • 4.6.2
    • None
    • None
    • cc3c4166, 3695cb25

    Description

      QWidget parent;
      QVBoxLayout layout(&parent);
      layout.addWidget(&child);
      parent.setLayout(&layout);
      parent.show();
      
      // Child shares parent's backing store
      
      // Make child widget full screen
      child.setWindowFlags((child.windowFlags() | Qt::Window) ^ Qt::SubWindow);
      child.setWindowState(child.windowState() | Qt::WindowFullScreen);
      child.show();
      
      // Because child's extent now goes beyond parent's, it gets its own backing store
      
      // Disable full screen
      child.setWindowFlags(child.windowFlags() ^ (Qt::Window | Qt::SubWindow));
      child.setWindowState(child.windowState() ^ Qt::WindowFullScreen);
      child.show();
      
      // Child's backing store should be deleted, but it is not
      

      Attachments

        Issue Links

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

          Activity

            People

              gastockw Gareth Stockwell
              gastockw Gareth Stockwell
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes