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

Crash during quit if native widget's grandparent is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 6.3.0, 6.4.2
    • GUI: Other, Widgets: Layout
    • None
    • macOS

    Description

      In this test app, I have a QTabWidget with 2 widgets. Then I created a native widget with a normal QWidget as its container. Initially, this container  is added into one of the tab widget. When I switch the tab widget, I reparent it to the widget I am showing. However, the software crash when I quit the application while the parent's widget of the container is set to nullptr.

       

      Step to reproduce:

      1) Click on Widget 2

      2) Quit the app

       

      main.cpp

      Attachments

        1. qt.diff
          0.5 kB
        2. main.cpp
          3 kB

        Activity

          People

            vestbo Tor Arne Vestbø
            nanthiran2005 sivan nanthiran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: