crash/slow when using FileDialog in ios



  • Hi,

    I am having problem using the FileDialog, here's my implementation

    Item {
      id: root
      property string fileUrl: ""
    
      FileDialog {
        id: fileDialog
        nameFilters: ["Key files (*.key), All files (*.*)"]
        onAccepted: {
          root.fileUrl = fileDialog.fileUrl;
        }
      }
    
      Button {
         onClicked: fileDialog.open()
      }
    }
    

    When I tried running it in ios v8.4, the page loads slower compared from other pages.

    And when I tried running it in ios v9.1, it crashes, here is the error log:

    @
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/StackView.qml:821:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/ComboBox.qml:521:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/Private/ScrollViewHelper.qml:88:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/Private/ScrollViewHelper.qml:93:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/Private/ScrollViewHelper.qml:87:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/Private/ScrollViewHelper.qml:93:
    file:///private/var/mobile/Containers/Bundle/Application/CFFBA669-BACE-48CA-83D0-539B6CC6AAF6/player.app/qt_qml/QtQuick/Controls/Private/ScrollViewHelper.qml:87:
    In file /work/build/qt5_workdir/w/s/qtbase/include/QtCore/../../src/corelib/tools/qvector.h, line 508: Out of memory
    @

    Btw, the item is a child of a Stackview.

    Please advise. Thanks!



  • @literA2 QFileDialog(QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString())



  • @steel24 Thanks for the reply however, i am using FileDialog instead of QFileDialog.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.