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

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

XMLWordPrintable

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

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes