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

Crash in QQuickView + BusyIndicator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.3.0, 5.3.1, 5.3.2
    • None
    • Qt 5.3.2, MSVC 2013, Qt addin 1.2.3

    Description

      Next code will crash on closing QQuickView. Turning off BusyIndicator is working OK.

      test.qml:

       
      import QtQuick 2.2
      import QtQuick.Controls 1.2
      
      Rectangle
      {
          id: root;
          signal quit();
          Component.onDestruction: quit();
          BusyIndicator
          {
              id: progress
              running: true
              anchors.fill: parent
          }
      }
      

      main.cpp

      #include <QGuiApplication>
      #include <QQuickView>
      #include <QQuickItem>
      #include <QPointer>
      
      
      int main(int argc, char *argv[] )
      {
          QGuiApplication a( argc, argv );
          QPointer< QQuickView > w = new QQuickView();
      
          QObject::connect( w, &QQuickView::statusChanged, [=]()
          {
              QObject::connect( w->rootObject(), SIGNAL( quit() ), qApp, SLOT( quit() ) );
          } );
      
          w->setSource( QUrl( "qrc:/test.qml" ) );
          w->setResizeMode( QQuickView::SizeRootObjectToView );
          w->show();
      
          a.exec();
          return 0;
      }
      

      Possible, this issue is similar with: https://bugreports.qt-project.org/browse/QTBUG-36115

      Attachments

        1. QTBUG-39478.tgz
          0.8 kB
        2. QTBUG-39478.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sazonov Dmitry Sazonov
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes