Hi All,
I have followed all the steps as mentioned in Debugging JavaScript in Qt CreatorâAppStudio for ArcGIS | ArcGIS to debug the app studio app. Everything is fine but once i try to debug the app,it is not recognizing the framework and showing the below error -
Starting C:\Qt\Qt5.10.1\5.10.1\msvc2015_64\bin\qmlscene.exe...
file:///C:/Users/Rabi/ArcGIS/AppStudio/Apps/d0e72ccb693c4ba4a3dab25ee4818e4c/MyApp.qml:25 plugin cannot be loaded for module "ArcGIS.AppFramework": Cannot load library C:\Qt\Qt5.10.1\5.10.1\msvc2015_64\qml\ArcGIS\AppFramework\AppFrameworkPlugin.dll: The specified procedure could not be found.
C:/Qt/Qt5.10.1/5.10.1/msvc2015_64/bin/qmlscene.exe exited with code -1
If any idea or suggestions, please let me know.
Code is-
import QtQuick 2.6
import QtQuick.Controls 2.1
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QtPositioning 5.3
import QtSensors 5.3
import ArcGIS.AppFramework 1.0
import ArcGIS.AppFramework.Controls 1.0
import Esri.ArcGISRuntime 100.1
//------------------------------------------------------------------------------
App { id: app
width: 414
height: 736
property real scaleFactor: AppFramework.displayScaleFactor
//header bar
Rectangle { id: titleRect
anchors { left: parent.left
right: parent.right
top: parent.top
}
height: 50 * AppFramework.displayScaleFactor
color: app.info.propertyValue("titleBackgroundColor", "purple") Text { id: titleText
anchors.centerIn: parent
text: app.info.title
color: app.info.propertyValue("titleTextColor", "white") font { pointSize: 18
}
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
maximumLineCount: 2
elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter
}
}
MapView { id:mapView
property real initialMapRotation: 0
anchors { left: parent.left
right: parent.right
top: titleRect.bottom
bottom: parent.bottom
}
rotationByPinchingEnabled: true
zoomByPinchingEnabled: true
locationDisplay { positionSource: PositionSource { }
}
// add a basemap
Map{ id:map
//BasemapTopographic{} //BasemapStreets {} BasemapImagery {} initialViewpoint: ViewpointCenter { id:initialViewpoint
center: Point { x: -11e6
y: 6e6
spatialReference: SpatialReference {wkid: 102100} }
targetScale: 9e7
}
}
// map control buttons
Column{ id:buttons
spacing: 5 * scaleFactor
anchors { verticalCenter: parent.verticalCenter
right: parent.right
margins: 5 * scaleFactor
}
Button{ id:homeButton
Image{ source: "./images/home.png"
height: 40 * scaleFactor
width : height
anchors.centerIn: parent
}
height: 40 * scaleFactor
width : height
onHoveredChanged: hovered ? homeButton.opacity = 1 : homeButton.opacity = .5;
opacity: .5
onClicked:{ mapView.setViewpointWithAnimationCurve(map.initialViewpoint, 1.0, Enums.AnimationCurveEaseInOutCubic)
mapView.setViewpointRotation(mapView.initialMapRotation)
}
}
Button{ id:locationButton
Image{ source:"./images/location.png"
height: 30 * scaleFactor
width: height
anchors.centerIn: parent
}
onHoveredChanged: hovered ? locationButton.opacity = 1 : locationButton.opacity = .5;
height: 40 * scaleFactor
width : height
opacity: .5
onClicked: { if (!mapView.locationDisplay.started) { mapView.locationDisplay.start()
mapView.locationDisplay.autoPanMode = Enums.LocationDisplayAutoPanModeRecenter
} else { mapView.locationDisplay.stop()
}
}
}
}
}
}
//------------------------------------------------------------------------------