<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Qt5/QtQuick plugin not working in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/qt5-qtquick-plugin-not-working/m-p/1258228#M8375</link>
    <description>&lt;P&gt;Hi there.&amp;nbsp; I'm trying to complete an app with Pyside2 / Qt 5.15.2 / QML and I'm trying to use the plugin for QtLocation.Map.&amp;nbsp; The filename is qtgeoservices_esri.dll.&lt;/P&gt;&lt;P&gt;I have tried not providing a token, I have tried providing the API token as "token" and "esri.token", I have tried providing an oauth2 client_access token with both "token" and "esri.token" and all I can get is a grey screen with a small "esri contributors" in the bottom corner.&amp;nbsp; Can anyone please tell me how to get this plugin to work?&lt;/P&gt;&lt;P&gt;Here is the code I am trying, thanks for the assistance.&lt;/P&gt;&lt;P&gt;esriTest.py:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import QtQuick 2.15
import QtWebEngine 1.10
import QtQuick.Controls 2.15
import QtLocation 5.15
import QtPositioning 5.15

ApplicationWindow {
    visible: true
        width: 600
        height: 500
        title: "HelloApp"
        Plugin {
            id: mapPlugin
            name: "esri"
            PluginParameter {
                name: "esri.token"
                value: "TOKEN"
            }
        }
        Map {
            id: mapSection
            anchors.fill: parent
            plugin: mapPlugin
            activeMapType: supportedMapTypes[1]
            Component.onCompleted: {
                for (var i=0; i&amp;lt;mapSection.supportedMapTypes.length; i++) {
                    console.log(i, supportedMapTypes[i].name)
                }
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriTest.qml:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from PySide2 import * 
from PySide2.QtGui import QGuiApplication 
from PySide2.QtQml import QQmlApplicationEngine 
from pathlib import Path import os,sys

app = QGuiApplication(sys.argv) 
engine = QQmlApplicationEngine() 
engine.load(os.fspath(Path(__file__).resolve().parent / "qml/esriTest.qml")) 
if not engine.rootObjects(): sys.exit(-1)
	sys.exit(app.exec_())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 21:32:35 GMT</pubDate>
    <dc:creator>GeneHorodecki</dc:creator>
    <dc:date>2023-02-14T21:32:35Z</dc:date>
    <item>
      <title>Qt5/QtQuick plugin not working</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/qt5-qtquick-plugin-not-working/m-p/1258228#M8375</link>
      <description>&lt;P&gt;Hi there.&amp;nbsp; I'm trying to complete an app with Pyside2 / Qt 5.15.2 / QML and I'm trying to use the plugin for QtLocation.Map.&amp;nbsp; The filename is qtgeoservices_esri.dll.&lt;/P&gt;&lt;P&gt;I have tried not providing a token, I have tried providing the API token as "token" and "esri.token", I have tried providing an oauth2 client_access token with both "token" and "esri.token" and all I can get is a grey screen with a small "esri contributors" in the bottom corner.&amp;nbsp; Can anyone please tell me how to get this plugin to work?&lt;/P&gt;&lt;P&gt;Here is the code I am trying, thanks for the assistance.&lt;/P&gt;&lt;P&gt;esriTest.py:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;import QtQuick 2.15
import QtWebEngine 1.10
import QtQuick.Controls 2.15
import QtLocation 5.15
import QtPositioning 5.15

ApplicationWindow {
    visible: true
        width: 600
        height: 500
        title: "HelloApp"
        Plugin {
            id: mapPlugin
            name: "esri"
            PluginParameter {
                name: "esri.token"
                value: "TOKEN"
            }
        }
        Map {
            id: mapSection
            anchors.fill: parent
            plugin: mapPlugin
            activeMapType: supportedMapTypes[1]
            Component.onCompleted: {
                for (var i=0; i&amp;lt;mapSection.supportedMapTypes.length; i++) {
                    console.log(i, supportedMapTypes[i].name)
                }
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriTest.qml:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;from PySide2 import * 
from PySide2.QtGui import QGuiApplication 
from PySide2.QtQml import QQmlApplicationEngine 
from pathlib import Path import os,sys

app = QGuiApplication(sys.argv) 
engine = QQmlApplicationEngine() 
engine.load(os.fspath(Path(__file__).resolve().parent / "qml/esriTest.qml")) 
if not engine.rootObjects(): sys.exit(-1)
	sys.exit(app.exec_())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 21:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/qt5-qtquick-plugin-not-working/m-p/1258228#M8375</guid>
      <dc:creator>GeneHorodecki</dc:creator>
      <dc:date>2023-02-14T21:32:35Z</dc:date>
    </item>
  </channel>
</rss>

