<?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 How to create QtObject inside a js file? in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-create-qtobject-inside-a-js-file/m-p/1038616#M3847</link>
    <description>&lt;P&gt;So I need to make a directory if it's not exist by using QtObject. This code works fine inside a qml file but I need to create and use this code inside a javaScript file. How to do it?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QtObject {
    id: internal
     property url folderUrl: "image";
}

FileFolder { 
    id: fileFolder
    url: "assets/media_images"//internal.folderUrl
    Component.onCompleted: {
        if (!fileFolder.exists) {
            fileFolder.makeFolder(internal.folderUrl);
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Mar 2021 13:07:03 GMT</pubDate>
    <dc:creator>x_d</dc:creator>
    <dc:date>2021-03-19T13:07:03Z</dc:date>
    <item>
      <title>How to create QtObject inside a js file?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-create-qtobject-inside-a-js-file/m-p/1038616#M3847</link>
      <description>&lt;P&gt;So I need to make a directory if it's not exist by using QtObject. This code works fine inside a qml file but I need to create and use this code inside a javaScript file. How to do it?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;QtObject {
    id: internal
     property url folderUrl: "image";
}

FileFolder { 
    id: fileFolder
    url: "assets/media_images"//internal.folderUrl
    Component.onCompleted: {
        if (!fileFolder.exists) {
            fileFolder.makeFolder(internal.folderUrl);
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 13:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-create-qtobject-inside-a-js-file/m-p/1038616#M3847</guid>
      <dc:creator>x_d</dc:creator>
      <dc:date>2021-03-19T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create QtObject inside a js file?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-create-qtobject-inside-a-js-file/m-p/1040437#M3851</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/61305"&gt;@x_d&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this documentation from Qt will help you,&amp;nbsp;&lt;A href="https://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html" target="_blank"&gt;https://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erwin.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 22:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/how-to-create-qtobject-inside-a-js-file/m-p/1040437#M3851</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2021-03-24T22:14:09Z</dc:date>
    </item>
  </channel>
</rss>

