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

[REG] QMainWindow crash in destructor when having a QDockWidget of type Qt::Drawer containing a QTreeWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.4
    • 4.7.1
    • Widgets: Main Window
    • None
    • OSX 10.6.5
    • 5949c215bd53582d0c6481f606a9ec015f067b37

    Description

      Since Qt 4.7, QDockWidget of type Qt::Drawer cause a crash in the destruction of the parent widget.

      I made a minimal code to reproduce the problem :

      • Compile it with Qt 4.7.x
      • run the application
      • CLICK in the treeview in the drawer
      • QUIT the application

      The application crash with the following backtrace :

      #0  0x9415cedb in objc_msgSend ()
      #1  0x01a2dae0 in ?? ()
      #2  0x97a1f9f5 in -[NSView removeFromSuperview] ()
      #3  0x00028a56 in qt_mac_destructView ()
      #4  0x0002fe33 in QWidget::destroy ()
      #5  0x000e3b4d in QWidget::~QWidget ()
      #6  0x00bb756c in QObjectPrivate::deleteChildren ()
      #7  0x000e4017 in QWidget::~QWidget ()
      #8  0x000038d4 in MainWindow::~MainWindow (this=0xbffff5d4) at drawer/main.cpp:8
      #9  0x0000358a in main (argc=1, argv=0xbffff660) at drawer/main.cpp:32
      

      Attachments

        1. drawer.pro
          0.1 kB
        2. main.cpp
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard Richard Moe Gustavsen
            r2d3 David Geldreich
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes