Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. crash/slow when using FileDialog in ios
QtWS25 Last Chance

crash/slow when using FileDialog in ios

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    literA2
    wrote on last edited by literA2
    #1

    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!

    S 1 Reply Last reply
    0
    • L literA2

      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!

      S Offline
      S Offline
      steel24
      wrote on last edited by
      #2

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

      L 1 Reply Last reply
      0
      • S steel24

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

        L Offline
        L Offline
        literA2
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved