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

QWidget still receives signals from children in its QObject dtor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.11.2, 5.12.0, 5.12.3, 5.12.8, 5.13.0, 5.13.2, 5.14.1, 5.14.2, 5.15.1, 5.15.2
    • None
    • Linux/X11

      In short:

      1. Widget creates a child QStackedWidget
      2. Other widgets, grandchildren of the first one, are added to the QStackedWidget
      3. The `destroyed` signal of the grandchildren is connected to the grandparent
      4. Grandparent is destroyed, and thus its lineage
      5. Grandparent receives the `destroyed` signal of each grandchild while within its QObject dtor.

      I'll attach an example once I get a bug number.

      (For the record, this goes back to at least 5.11.2, according to Choqok Bug #400117.)

        1. qtbug90773_simpler.zip
          2 kB
          Frédéric Brière
        2. qtbug90773.zip
          2 kB
          Frédéric Brière
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vhilshei Volker Hilsheimer
            fbriere Frédéric Brière
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes