UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Morph.Web documentation

    App Development
    2
    2
    273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mnjrupp
      last edited by

      I'm wanting to create a webapp+ using Morph.
      Is there any documentation on using Morph.Web?
      I've looked at a few apps in the OpenStore but non seem to help. with several issues I have.
      I've having issues trying to create a bank app opening its website and resizing the page like it would when opening the same site using the UT Morph browser.
      The second issue is I have a little blank window created along with the website.
      here is a snippet of the main.qml

      coimport QtQuick 2.9
       import QtQuick.Controls 2.2
       import QtWebEngine 1.7
       import Morph.Web 0.1
       //import "components"
      
       ApplicationWindow {
      
         color: '#000000'
         width: units.gu(45)
         height: units.gu(75)
      
           visible: true
          id:application
           WebEngineView {
              id: webview
               //anchors.fill: parent
               anchors {
                   top: parent.top
                   left: parent.left
                   right: parent.right
                   bottom: parent.bottom
               }
               focus: true
               url: "https://www.wellsfargo.com/"
               profile:  WebEngineProfile {
                 id: webContext
                 httpUserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36"
                 storageName: "Storage"
                 persistentStoragePath: "/home/phablet/.cache/mnjrupp.wellsfargo/mnjrupp.wellsfargo/QtWebEngine"
               }
      }
      
      1 Reply Last reply Reply Quote 0
      • dobeyD
        dobey
        last edited by

        The docs for Ubuntu.Web will work, simply replace Ubuntu.Web with Morph.Web for the imports. https://api-docs.ubports.com/sdk/apps/qml/Ubuntu.Web/index.html

        1 Reply Last reply Reply Quote 1
        • A ari referenced this topic on
        • First post
          Last post