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

Backing store is not deleted if widget is partially shown, fully shown, then hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.7.0
    • 4.7.0
    • None
    • None
    • cc1b6475, cb8d2dcc,

      The following code illustrates this bug:

      QWidget upper;
      upper.setGeometry(50, 50, 100, 100);
      
      QWidget lower;
      lower.setGeometry(lower.geometry());
      
      lower.show();
      upper.show();
      upper.raise();
      
      // At this point, upper has a backing store but lower does not
      
      // Partially reveal lower
      upper.move(100, 100);
      
      // lower receives a PartiallyVisible event, so its reference count goes from 0 -> 1
      
      // Completely reveal lower
      upper.hide();
      
      // lower receives a PartiallyVisible event, so its reference count goes from 1 -> 2
      
      lower.hide();
      
      // lower receives a NotVisible event, so its reference count goes from 2 -> 1
      // The backing store is therefore not deleted
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes