<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[module &quot;Ubuntu.Web&quot; is not installed]]></title><description><![CDATA[<p dir="auto">Given this:</p>
<pre><code>import Ubuntu.Web 0.2

Item {
   anchors.fill: parent

   WebView {
      id: webView
      url: "...."
      anchors.fill: parent
   }
</code></pre>
<p dir="auto">I will get:</p>
<pre><code>qrc:/pages/WebPage.qml:5:1: module "Ubuntu.Web" is not installed
</code></pre>
<p dir="auto">I cannot find any hint in the documentation on how to properly enable webview support. What am I missing?</p>
<p dir="auto">I am using cmake / c++ template in a blank new app created via <code>clickable create</code>.</p>
]]></description><link>https://forums.ubports.com/topic/6440/module-ubuntu-web-is-not-installed</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 11:45:38 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/6440.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jul 2021 08:08:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Fri, 23 Jul 2021 14:04:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cibersheep" aria-label="Profile: cibersheep">@<bdi>cibersheep</bdi></a> Yeah well it <em>is</em> handled by the webview, after setting high dpi mode. This is also in line with the QT documentation so I guess everything is working correctly here.</p>
]]></description><link>https://forums.ubports.com/post/53450</link><guid isPermaLink="true">https://forums.ubports.com/post/53450</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Fri, 23 Jul 2021 14:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Fri, 23 Jul 2021 11:49:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> said in <a href="/post/53424">module "Ubuntu.Web" is not installed</a>:</p>
<blockquote>
<p dir="auto">This should probably be handled by the webview.</p>
</blockquote>
<p dir="auto">Maybe you could help with that.<br />
I don't know if Moprh is responsible for the webviwer or is from upstream Qt</p>
<p dir="auto">A first place to start could be: <a href="https://github.com/ubports/morph-browser/" rel="nofollow ugc">https://github.com/ubports/morph-browser/</a></p>
]]></description><link>https://forums.ubports.com/post/53442</link><guid isPermaLink="true">https://forums.ubports.com/post/53442</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Fri, 23 Jul 2021 11:49:56 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Fri, 23 Jul 2021 08:11:21 GMT]]></title><description><![CDATA[<p dir="auto">Okay, so it turned out that all the time I had</p>
<pre><code>MainView {
   id: root
   objectName: 'mainView'
   applicationName: 'myapp.s710'
   automaticOrientation: true

//   width: units.gu(45)
//   height: units.gu(75)
   width: units.gu(100)
   height: units.gu(200)
</code></pre>
<p dir="auto">Because when running as <code>clickable desktop</code>, the window would be tiny otherwise. However I never noticed a difference when deploying to the phone, so I thought it was okay.</p>
<p dir="auto">However, after I had just set <code>QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);</code> - which didn't have any effect - I also changed back the MainView size to 45/57, and voila, now the contents of the webview scale correctly, same as in the Morph browser.</p>
<p dir="auto">Long story short:</p>
<ul>
<li>no need to set the user agent</li>
<li>set  <code>QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);</code></li>
<li>leave MainView dimensions set to <a href="http://units.gu" rel="nofollow ugc">units.gu</a>(45)/units.gu(75) (which is the default after <code>clickable create</code>)</li>
</ul>
]]></description><link>https://forums.ubports.com/post/53427</link><guid isPermaLink="true">https://forums.ubports.com/post/53427</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Fri, 23 Jul 2021 08:11:21 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Fri, 23 Jul 2021 07:49:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cibersheep" aria-label="Profile: cibersheep">@<bdi>cibersheep</bdi></a> Well as I said, the zoom factor has no effect when deployed to the phone, no matter if I set it to 5 or 0.5. It only works in desktop mode.</p>
<p dir="auto">But then I also think it should not be the responsibility of the developer to set a zoom factor which seemingly is appropriate. This should probably be handled by the webview.</p>
<p dir="auto">I found this post:<br />
<a href="https://stackoverflow.com/questions/22356243/how-can-i-set-webview-content-scale-qml-qt-5-2" rel="nofollow ugc">https://stackoverflow.com/questions/22356243/how-can-i-set-webview-content-scale-qml-qt-5-2</a><br />
Which is about the same issue. The post suggests that setting different user agents affects the scaling, yet I don't see any effect:</p>
<pre><code>   WebView {
      id: webView
      anchors.top: header.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.bottom: parent.bottom
      experimental.userAgent: "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25"

      url: settings.mothership
   }

   Component.onCompleted: {
      SharedWebContext.customUA = "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25"
   }
</code></pre>
<p dir="auto">To demonstrate, this is how it looks in the webview:</p>
<p dir="auto"><img src="/assets/uploads/files/1627026202697-screenshot20210723_094055130.png" alt="screenshot20210723_094055130.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And this is how it looks in the Morph browser:<br />
<img src="/assets/uploads/files/1627026216482-screenshot20210723_094059188.png" alt="screenshot20210723_094059188.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have also set <code>QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);</code> before <code>QGuiApplication</code> creation, but it doesnt change anything.</p>
<p dir="auto">[edit] For what its worth, the user agent used by the Morph browser is <code>"Mozilla/5.0 (Linux; Ubuntu 16.04 like Android 9) AppleWebKit/537.36 Chrome/77.0.3865.129 Mobile Safari/537.36"</code>.</p>
<p dir="auto">Setting this, however, also does not have any effect.</p>
]]></description><link>https://forums.ubports.com/post/53424</link><guid isPermaLink="true">https://forums.ubports.com/post/53424</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Fri, 23 Jul 2021 07:49:49 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Thu, 22 Jul 2021 19:15:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> I used to do this<br />
<a href="https://gitlab.com/cibersheep/quixe-qml/-/blob/master/qml/Main.qml#L26" rel="nofollow ugc">https://gitlab.com/cibersheep/quixe-qml/-/blob/master/qml/Main.qml#L26</a><br />
to get a real number to set a <code>zoomFactor</code> in the webview that may or may not work on high dense screens...</p>
]]></description><link>https://forums.ubports.com/post/53405</link><guid isPermaLink="true">https://forums.ubports.com/post/53405</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Thu, 22 Jul 2021 19:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Thu, 22 Jul 2021 18:47:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cibersheep" aria-label="Profile: cibersheep">@<bdi>cibersheep</bdi></a> Ok so actually it worked. I don't know what it was, but now it works. Maybe I had a mistake in the URL even.</p>
<p dir="auto">But now I have another issue:<br />
The website is scaled as if it was running on a desktop browser (everything is really small). When I open the same page in the Morph Browser, it gets scaled according to mobile dimensions ("bigger", responsive-design).</p>
<p dir="auto">I have this in my main.qml:</p>
<pre><code>MainView {
   id: root
   objectName: 'mainView'
   applicationName: 'myapp.s710'
   automaticOrientation: true

   width: units.gu(45)
   height: units.gu(75)

   PageStack {
      id: pageStack
      anchors {
            fill: parent
      }
   }

   Component.onCompleted: pageStack.push(Qt.resolvedUrl("pages/WebPage.qml"))
}
</code></pre>
<p dir="auto">WebPage.qml:</p>
<pre><code>Page {
   id: mapPage
   anchors.fill: parent

   WebView {
      id: webView
      anchors.top: header.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.bottom: parent.bottom
      url: settings.mothership
   }
}
</code></pre>
<p dir="auto">The webview is going to anchor to basically the <code>MainView</code> (through the stack hierarchy).</p>
<p dir="auto">Is this some webview issue, or is it a view configuration issue? I am still new to layouts and sizing/dimensions in Ubuntu Touch, so I don't really know what I am doing.</p>
<p dir="auto">I already adjusted the user agent in the shared web context, hoping that the website would be responsible for the scaling since it doesn't detect a mobile device, but it didn't help.</p>
<p dir="auto">[edit] I found <a href="https://gitlab.com/ubports/apps/qt-webengine-demo/-/blob/master/qml/Main.qml" rel="nofollow ugc">https://gitlab.com/ubports/apps/qt-webengine-demo/-/blob/master/qml/Main.qml</a> and in there is <code>zoomFactor: 1.0</code>, and while it <em>does</em> exist in the <code>Morph.Web WebView</code>, it has no effect whatsoever when running on the phone.<br />
It <strong>does</strong> however change the scaling when running on desktop (<code>clickable desktop</code>). Strange.</p>
]]></description><link>https://forums.ubports.com/post/53400</link><guid isPermaLink="true">https://forums.ubports.com/post/53400</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Thu, 22 Jul 2021 18:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Wed, 21 Jul 2021 21:20:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> Can you not run your application instead by using <code>webapp-container ./index.html</code> for example?</p>
]]></description><link>https://forums.ubports.com/post/53359</link><guid isPermaLink="true">https://forums.ubports.com/post/53359</guid><dc:creator><![CDATA[dobey]]></dc:creator><pubDate>Wed, 21 Jul 2021 21:20:41 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Wed, 21 Jul 2021 19:44:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> You might need to implement the websocket calls in qml... but I don't know anything about that. Sorry</p>
]]></description><link>https://forums.ubports.com/post/53353</link><guid isPermaLink="true">https://forums.ubports.com/post/53353</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Wed, 21 Jul 2021 19:44:13 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Wed, 21 Jul 2021 06:16:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cibersheep" aria-label="Profile: cibersheep">@<bdi>cibersheep</bdi></a> Oh and I have another problem. The page I want to show (local website in my LAN) does not render when I run the app on the Volla Phone.<br />
The page <em>does</em> render when I run the app as <code>clickable desktop</code>, and the page also renders when I open it in the Morph Browser of the Volla Phone. So I guess it <em>should</em> also work in the webview? The page uses websockets, maybe thats an issue?</p>
<p dir="auto">I have already added <code>"policy_groups": ["webview", "networking", "connectivity"]</code>but still the page wont load.</p>
<p dir="auto">The page will also be just blank (not e.g. 404 error or something), so it seems to load, but the page itself seems to be non-functional, probably due to lack of feature support of <em>something</em>?</p>
]]></description><link>https://forums.ubports.com/post/53307</link><guid isPermaLink="true">https://forums.ubports.com/post/53307</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Wed, 21 Jul 2021 06:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Tue, 20 Jul 2021 12:27:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> sounds like it. I would update the docker image (<code>clickable update</code>) just in case</p>
]]></description><link>https://forums.ubports.com/post/53287</link><guid isPermaLink="true">https://forums.ubports.com/post/53287</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Tue, 20 Jul 2021 12:27:55 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Mon, 19 Jul 2021 18:47:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cibersheep" aria-label="Profile: cibersheep">@<bdi>cibersheep</bdi></a> said in <a href="/post/53202">module "Ubuntu.Web" is not installed</a>:</p>
<blockquote>
<p dir="auto">import <a href="http://Morph.Web" rel="nofollow ugc">Morph.Web</a> 0.1</p>
</blockquote>
<p dir="auto">Thanks, works. Now I'll get a ton of warnings/errors (webview works though):</p>
<pre><code>WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebView.qml:144:5: QML Connections: Cannot assign to non-existent property "onContextMenuIntercepted"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebView.qml:144:5: QML Connections: Cannot assign to non-existent property "onInsertionHandleTapped"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebView.qml:144:5: QML Connections: Cannot assign to non-existent property "onStatusChanged"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebView.qml:145:9: Unable to assign [undefined] to QObject*
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/Icon.qml:115:5: QML Image: Failed to get image from provider: image://theme/chevron
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/1.3/Icon.qml:115:5: QML Image: Failed to get image from provider: image://theme/chevron
qml: Loaded 19 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/ua-overrides-desktop.js
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebContext.qml:104: Error: Invalid write to global property "userAgentOverrides"
qml: Loaded 19 UA override(s) from file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/ua-overrides-desktop.js
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Morph/Web/MorphWebContext.qml:104: Error: Invalid write to global property "userAgentOverrides"
</code></pre>
<p dir="auto">Is that normal? Thats when running on desktop.</p>
]]></description><link>https://forums.ubports.com/post/53248</link><guid isPermaLink="true">https://forums.ubports.com/post/53248</guid><dc:creator><![CDATA[s710]]></dc:creator><pubDate>Mon, 19 Jul 2021 18:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to module &quot;Ubuntu.Web&quot; is not installed on Sun, 18 Jul 2021 20:29:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/s710" aria-label="Profile: s710">@<bdi>s710</bdi></a> You might have encountered other outdated page.<br />
<code>Ubuntu.Web</code> is replaced by <code>Morph.Web</code></p>
<p dir="auto">You can use <code>import Morph.Web 0.1</code></p>
]]></description><link>https://forums.ubports.com/post/53202</link><guid isPermaLink="true">https://forums.ubports.com/post/53202</guid><dc:creator><![CDATA[CiberSheep]]></dc:creator><pubDate>Sun, 18 Jul 2021 20:29:35 GMT</pubDate></item></channel></rss>