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

[regression] setting windows flags in constructor leading to crash

    XMLWordPrintable

Details

    • All, Linux/X11, macOS, Windows
    • 21dcb96ddca357a6e8ace4b1c7252ec465e77727 (qt/qtbase/5.12)

    Description

      When WIndows flags are set to be frameless in QDialog, this some time crashes.

      Attached example can be used to crash it on windows as well on Mac, 

      Steps, run the code and hit Menu->test 

      (it may crash here on Mac)

      this will show frame-less dialog, click any where in dialog to close it. (it may crash here )

      This crash is not reproducible with every try but it is reproducible with most .

      This works good with Qt5.10.1 but broken in 5.11.0. 

      Stack 

      Qt5Cored.dll!QObject::isWidgetType() Line 142 
      qobject_cast<QWidget *>(QObject * o) Line 742 
      updateObjects(const QList<QObject const *> & objects) Line 2732 
      QStyleSheetStyle::repolish(QWidget * w) Line 2911 
      QWidgetPrivate::inheritStyle() Line 2823 
      QWidget::setParent(QWidget * parent, QFlags<enum Qt::WindowType> f) Line 10748 
      Qt5Widgetsd.dll!QWidgetPrivate::setWindowFlags(QFlags<enum Qt::WindowType> flags) Line 10558 
      Qt5Widgetsd.dll!QWidget::setWindowFlags(QFlags<enum Qt::WindowType> flags) Line 10520 
      crash_test.exe!DlgAboutNew::DlgAboutNew(QWidget * parent) Line 14 
      crash_test.exe!MainWindow::on_actiontest_triggered() Line 20 

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-74667
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              irfan.omair@digia.com Irfan Omair
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes