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. Load time for the maps
Forum Updated to NodeBB v4.3 + New Features

Load time for the maps

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqt quickesri
2 Posts 2 Posters 1.0k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mathan M
    wrote on last edited by
    #1

    Dear All,

    I am developing an app in Qt 5.7/ESRi ARC GIs Runtime 100.0.0. I want to check the load time of the .tpk/.mmpk files.
    I want to apply simple strategy, placed 3 labels obtained the milliseconds when the map start loading, map end loaded and difference between the time.

    Since I am not aware about control flow in the qml, the value is wrong.
    Code snippets:

    import QtQuick 2.3
    import QtQuick.Controls 1.2
    import Esri.ArcGISRuntime 100.0
    import Esri.ArcGISExtras 1.1

    ApplicationWindow {
    id: appWindow
    width: 800
    height: 500
    title: "LoadTPKV1"

    property int intHours
    property int intMinutes
    property int intSeconds
    property int intMilliseconds
    property bool internationalTime: true

    Text {
    id: idtxtPath
    x: 14
    y: 15
    width: 73
    height: 29
    styleColor: "#b30707"
    //text: qsTr(System.userHomePath + "/CarTPKLevel1.tpk")
    //text: qsTr(Qt.formatDateTime(new Date().getSeconds()))
    //text: appWindow.timeChanged()
    // text: Qt.formatDateTime(new Date())
    //text: appWindow.timeChanged()

    }

    MapView {

    //anchors.fill: parent

    height: 400
    width: 800
    anchors.bottomarent

    // add a map to the mapview
    Map {

    Basemap{

    ArcGISTiledLayer{

    TileCache{

    path: System.userHomePath + "/CarTPKLevel1.tpk"

    }
    /*
    onComponentCompleted: {
    idtxtPath.text = appWindow.timeChanged()
    }
    */

    onLoadStatusChanged: {
    //End Event

    if(loadStatus === Enums.LoadStatusLoaded)
    {

    idtxtPath.text = appWindow.timeChanged()

    }

    }

    }

    }

    onComponentCompleted: {
    idtxtPath.text = appWindow.timeChanged()

    }
    }

    }

    Text {
    id: idEndTxt
    x: 128
    y: 15
    width: 93
    height: 29
    text: ""
    styleColor: "#bb0808"

    }

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Mathan-M said:

      appWindow.timeChanged()

      Where is that time property? Also, if there would be such a property, then timeChanged would be a signal.

      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