|
POST
|
Yes, it should work. We tested against 5.5 pre-release during the 10.2.6 certification, and found only a few minor (if any) issues. If you just run the post installer against your new kits/qt creator, it should be good to go.
... View more
07-06-2015
04:15 PM
|
0
|
4
|
2147
|
|
POST
|
You can set up a handler for the mousePositionChanged signal and accept the mouse events depending on if your panning flag is enabled or not. Something like the following should get you started. Thanks, Luke import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
import ArcGIS.Extras 1.0
import ArcGIS.Runtime 10.26
ApplicationWindow {
id: rootRectangle
width: 500
height: 500
property bool isPannable: true
Envelope {
id: extentEnvelope
xMin: -122.511
yMin: 37.7474
xMax: -122.3887
yMax: 37.8125
spatialReference: SpatialReference {
wkid: 4326
}
}
Map {
id: mainMap
anchors.fill: parent
extent: extentEnvelope
focus: true
ArcGISLocalTiledLayer {
id: baseArcGISLocalTiledLayer
path: "~/ArcGIS/Runtime/Data/tpks/SanFrancisco.tpk"
}
onMouseClicked: {
console.log("clicked", mouse.mapX)
}
onMousePositionChanged: {
if (!isPannable) {
mouse.accepted = true;
} else {
mouse.accepted = false;
}
}
}
Button {
text: "disable panning"
onClicked: {
if (isPannable)
isPannable = false;
else
isPannable = true;
}
}
}
... View more
07-06-2015
10:00 AM
|
0
|
0
|
1370
|
|
POST
|
Not at this release, but we are hoping to add this into both C++ and QML APIs in an upcoming release. Thanks, Luke
... View more
07-06-2015
09:17 AM
|
0
|
1
|
2046
|
|
POST
|
Hi Paul- Your code looks right. Based on your sample code, I ran some a similar test against a sample feature service, and it works just fine. You're basically doing the same thing as what is in the "Local Geodatabase Editing" QML Sample. It sounds like this could be a bug. I suggest you contact Esri Support Services to have them help further troubleshoot the issue and log a bug if appropriate. Thanks, Luke
... View more
07-01-2015
05:34 PM
|
0
|
3
|
1311
|
|
POST
|
Pablo- When you say you "couldn't build in any case", do you mean you are trying to actually build the binaries locally? This is something you would do with the SDK, but not something you would likely do with AppStudio. The workflow for AppStudio currently focuses around using the AppPlayer to play the interpreted QML code. Is this also not working? Either way, I think the best thing for you to do is to post in the AppStudio forums on the beta community so the AppStudio team can give you a hand with this-- https://earlyadopter.esri.com/home.html . It seems like building a simple app with the SDK is working, so I think some expertise from the AppStudio team may be what you need Thanks, Luke
... View more
07-01-2015
08:30 AM
|
0
|
1
|
1777
|
|
POST
|
Pablo- So after installing the Runtime SDK for Qt 10.2.6, the SDK projects work, but your existing AppStudio projects no longer work? What exactly is the issue? Do these items in AppStudio just not launch any longer, or do you get an error message? Thanks, Luke
... View more
06-30-2015
11:47 AM
|
0
|
3
|
1777
|
|
POST
|
KK- This looks like the crash is occurring in Qt itself, not in our API. I'm guessing there is some issue with setting the image you are retrieving to the QImage, and this is causing some issue. I suggest for this type of thing, either log an issue with Qt support (if you have it), or post something on their forums to see if they can assist you with it - Home | Qt Forum Thanks, Luke
... View more
06-29-2015
09:23 AM
|
0
|
0
|
1095
|
|
POST
|
Rainer- This looks like it may be a bug. I suggest you contact support to troubleshoot it and get it logged. I was able to get this to work with a Polyline though, so you might just want to use that in the meantime. I used different coordinates that were more obvious to see on the screen, but this should work with what you have too. I put this code below. For the syntax highlighting, it is a bit hidden, but you need to first select advanced editor, then ">>" > "Syntax Highlighting" > "javascript". Then copy in your code from there. I found that I need to copy from Qt Creator into another text editor first that copies it as plain text, as it looks a bit messed up with the formatting from Qt Creator + Syntax Highlighting here in GeoNet. GraphicsLayer {
id: gl
}
onStatusChanged: {
if (status === Enums.MapStatusReady) {
var graphic = ArcGISRuntime.createObject("Graphic");
var asymbol = ArcGISRuntime.createObject("SimpleLineSymbol");
var polyline_ = ArcGISRuntime.createObject("Polyline");
polyline_.spatialReference = map.spatialReference;
polyline_.startPath(5000000,6000000);
polyline_.lineTo(12000000,6000000);
graphic.symbol = asymbol;
graphic.geometry = polyline_;
gl.addGraphic(graphic);
}
}
... View more
06-26-2015
10:46 AM
|
0
|
0
|
1355
|
|
POST
|
Hey KK- Nope, this is something you would need to convert in ArcGIS Desktop. You could bring in a valid raster file, add it to your map, then share as tile package. There is no API provided in Runtime for this. -Luke
... View more
06-26-2015
10:19 AM
|
1
|
0
|
2634
|
|
POST
|
KK- Are you certain you installed the C++ API? The setup installer allows you to select if you want to install the C++ API in addition to the QML API. A good way to check is to see if this exists - C:\Program Files (x86)\ArcGIS SDKs\Qt10.2.6\sdk\ideintegration\ArcGISRuntimeQtTemplate10_2_6 If it does not, then you need to run the installer and install C++ API. If it is installed, try running the post installer again for Qt Creator. Thanks, Luke
... View more
06-25-2015
08:41 AM
|
2
|
0
|
1092
|
|
POST
|
KK- The code isn't on Github at this time. This animation is all done in QML. We use the Behavior element and add different animations for when certain properties of an element change. This Qt doc should help get you started - Behavior QML Element | Qt 4.8 -Luke
... View more
06-25-2015
08:39 AM
|
0
|
0
|
2216
|
|
POST
|
Hey Ceyhun- In the .pro file where you see QT+= and then a bunch of modules, try eliminating any that you don't need. For example, this should be enough for the basic template to run- "QT += core gui qml quick". Maybe your installation of 5.4.2 didn't include one of the modules that is referenced in the .pro file. -Luke
... View more
06-25-2015
08:34 AM
|
0
|
0
|
1296
|
|
POST
|
Hey Robert- You need to install the non OpenGL Windows Qt Kit. Notice that in the path in your error message, it says "msvc2013_64_opengl". You want to install the one that just says "msvc2013_64". This one should do the trick - http://download.qt.io/official_releases/qt/5.4/5.4.2/qt-opensource-windows-x86-msvc2013_64-5.4.2.exe Qt releases a few different versions of their Windows kit - one is built to use OpenGL for graphics display, and the other is used to use ANGLE. Our 10.2.5 release used OpenGL, but moving forward (10.2.6 onward), we will be building our Windows libs using ANGLE. More info about what this means can be found here - ArcGIS Runtime SDK for Qt: Migrating 10.2.5 Windows apps to 10.2.6 and DirectX | ArcGIS Blog Let me know how it goes. -Luke
... View more
06-25-2015
08:29 AM
|
0
|
1
|
3162
|
|
POST
|
Rainer- You can use yOffset to move it below another symbol. Take a look at what I did below. However, we don't currently have anything for conflict detection with other labels, or to know if you are moving off the screen. This is getting into more advanced labeling of features, which we plan to support in the future. I have added a note to consider the case of when labels begin to move off the screen, so that they re-arrange themselves automatically. Thanks, Luke GraphicsLayer {
id: gl
Graphic {
id: g
geometry: Point {
x: 0
y: 0
spatialReference: mainMap.spatialReference
}
symbol: TextSymbol {
id: txt
text: "0"
yOffset: -15
}
}
Graphic {
id: g2
geometry: Point {
x: 0
y: 0
spatialReference: mainMap.spatialReference
}
symbol: SimpleMarkerSymbol {
color: "red"
size: 14
}
}
}
... View more
06-24-2015
12:18 PM
|
0
|
1
|
1714
|
|
POST
|
Rainer- The reason this is happening is because it is a value based object, so when you are getting/setting, you are seeing a copy, but the actual value is not updated. You will need to get the symbol out of the graphic, modify it, then assign it back. GraphicsLayer {
id: gl
Graphic {
id: g
geometry: Point {
x: 0
y: 0
spatialReference: mainMap.spatialReference
}
symbol: TextSymbol {
id: txt
text: "0"
}
}
}
Button {
property var count: 0
anchors {
right: parent.right
top: parent.top
margins: 15
}
text: "set text"
onClicked: {
var txtSymbol = g.symbol;
txtSymbol.text = "some text " + count++;
g.symbol = txtSymbol;
}
}
-Luke
... View more
06-23-2015
05:15 PM
|
0
|
3
|
1714
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 05-27-2026 09:52 AM | |
| 1 | 11-24-2025 10:45 AM | |
| 1 | 07-30-2025 08:26 AM | |
| 1 | 05-15-2025 07:35 AM | |
| 2 | 11-26-2024 01:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|