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

Parent widget does not delete its backing store when native child widget is made full-screen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • None
    • ea85300f, bc1c4729, 0129e6e4

    Description

      QWidget parent;
      QWidget child(&parent);
      QVBoxLayout layout(&parent);
      layout.addWidget(&child);
      parent.setLayout(&layout);
      child.winId();
      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
      
      // However, backing store of (now totally occluded) parent widget is not deleted
      

      Attachments

        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:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes