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

iOS: MessageDialog Loads very slow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 5.3.1
    • Quick: Dialogs
    • None
    • iPhone 5 (7.1.1), built on Mac OSX
    • iOS/tvOS/watchOS

    Description

      On iOS I have a StackController loading a component with two MessageDialog items in it. This particular page loaded very slowly so I ran QML profiler on it. It shows that "confirmationDialog" (below) took 76 ms and "downloadDialog" (below) took 66 ms to load with details showing DefaultMessageDialog.qml. Then there is always about 100ms of binding per dialog. Then about 225ms worth of creating (control.qml calling buttonstyle.qml ) per dialog being loaded (this section is a ton of 9-11 ms calls).

      So on my page with two message dialogs I am getting the initial 143 ms of creating time then 170 ms of binding time, then about 450 ms of creating/binding for a total of 763ms, almost a full second, just to load the two message dialogs.

      MessageDialog {
              id: confirmationDialog
              icon: StandardIcon.Question
              title: "Delete?"
              text: "Are you sure you want to delete this item? (Will not delete already sent items from the server)"
              standardButtons: StandardButton.Yes | StandardButton.No
              property string itemUuid
              onYes: {
                  DbHelper.delete(itemUuid)//this is a c++ class
                  this.close()
              }
              onNo : this.close()
          }
      
      MessageDialog {
              id: downloadDialog
              icon: StandardIcon.Question
              title: "Download?"
              text: "Would you like to download this item? (Requires Network Connection)"
              standardButtons: StandardButton.Yes | StandardButton.No
              property string itemUuid
              onYes: {
                  console.log("downloading " + itemUuid + "...(jk, not really)")
                  this.close()
              }
              onNo : this.close()
          }
      

      This only seems to affect iOS, as the same application runs very fast on both an Android device and my Mac Desktop.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            jp36 James Pettitt
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes