<?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 Re: webview that displays a local html file? in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864249#M3089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that Sathya!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that it appears to be a custom arcgis webview and not the standard Qt one, so I'm assuming that someone at your end went through the same journey I did and ended up writing a custom one because the default one didn't do what you wanted! &amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested yet in an app but it certainly looks like what I'm looking for. Will post more here if I run into any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For others: this is the import statement used in that file)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;ArcGIS.AppFramework.WebView&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.0


&lt;/PRE&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 17:00:57 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T17:00:57Z</dc:date>
    <item>
      <title>webview that displays a local html file?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864247#M3087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I wonder if anyone could point me in the right direction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can successfully create a WebView object, and get it to load a url from the www. But the documentation specifically says:&amp;nbsp;&lt;STRONG style="color: #404244; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 19px;"&gt;Note: &lt;/STRONG&gt;&lt;SPAN style="color: #404244; background-color: #ffffff;"&gt;The &lt;/SPAN&gt;&lt;A href="http://doc.qt.io/qt-5/qml-qtwebview-webview.html" style="color: #17a81a; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 19px;" rel="nofollow noopener noreferrer" target="_blank"&gt;WebView&lt;/A&gt;&lt;SPAN style="color: #404244; background-color: #ffffff;"&gt; does not support loading content through the Qt Resource system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #404244; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="http://doc.qt.io/qt-5/qml-qtwebview-webview.html" title="http://doc.qt.io/qt-5/qml-qtwebview-webview.html" rel="nofollow noopener noreferrer" target="_blank"&gt;WebView QML Type | Qt WebView 5.9&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wanting to compose, view, load, edit and save an html file locally, but this suggests to me I can't do it using the WebView object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read the html file as text, and load it with the loadHtml() method, but it looks like the 'baseUrl' it expects is an online resource, and I can't get it to display any resources (such as image files).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I interact with a local html file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;QtWebView&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.1&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #800080;"&gt;App&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;app&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;width&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;500;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;height&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;500&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;WebView&lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;mywebview&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;anchors.fill&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;parent&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;}

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864247#M3087</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: webview that displays a local html file?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864248#M3088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the Quick Report template. It supports loading of the webpage for help both local and remote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the location of the code that deals with loading local HTML files:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QuickReport/controls/WebPage.qml&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 20:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864248#M3088</guid>
      <dc:creator>SathyaPrasad</dc:creator>
      <dc:date>2017-06-12T20:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: webview that displays a local html file?</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864249#M3089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that Sathya!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that it appears to be a custom arcgis webview and not the standard Qt one, so I'm assuming that someone at your end went through the same journey I did and ended up writing a custom one because the default one didn't do what you wanted! &amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested yet in an app but it certainly looks like what I'm looking for. Will post more here if I run into any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(For others: this is the import statement used in that file)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #808000;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;ArcGIS.AppFramework.WebView&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;1.0


&lt;/PRE&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/webview-that-displays-a-local-html-file/m-p/864249#M3089</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T17:00:57Z</dc:date>
    </item>
  </channel>
</rss>

