Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Not load the http website by webview in qml 5.15.2
Forum Updated to NodeBB v4.3 + New Features

Not load the http website by webview in qml 5.15.2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 322 Views 1 Watching
  • 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.
  • H Offline
    H Offline
    HienTB
    wrote on last edited by
    #1

    Hi everyone,

    I am using webview in qml 5.15.2 for android. It loads https website successfully, but the http website is fault: net::ERR_CLEARTEXT_NOT_PERMITTED

    pls support me.

    mzimmersM 1 Reply Last reply
    0
    • H HienTB

      Hi everyone,

      I am using webview in qml 5.15.2 for android. It loads https website successfully, but the http website is fault: net::ERR_CLEARTEXT_NOT_PERMITTED

      pls support me.

      mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #2

      @HienTB it's hard to tell from the little information you've supplied, but this doesn't appear to be a Qt issue. Is this a secure site, and are you attempting to pass user ID/password information?

      Try to post a bit of code (as minimal as possible to show what you're doing), and some context, such as the data you're trying to use.

      H 2 Replies Last reply
      0
      • mzimmersM mzimmers

        @HienTB it's hard to tell from the little information you've supplied, but this doesn't appear to be a Qt issue. Is this a secure site, and are you attempting to pass user ID/password information?

        Try to post a bit of code (as minimal as possible to show what you're doing), and some context, such as the data you're trying to use.

        H Offline
        H Offline
        HienTB
        wrote on last edited by
        #3

        @mzimmers I only use qml to load the website. In backend, i only call QtWebView::initialize(). I tried with https web site and it is successful but when i change the url of webview to http website then it is fault.

        In short, i only change the url in qml to load the website.

        1 Reply Last reply
        0
        • mzimmersM mzimmers

          @HienTB it's hard to tell from the little information you've supplied, but this doesn't appear to be a Qt issue. Is this a secure site, and are you attempting to pass user ID/password information?

          Try to post a bit of code (as minimal as possible to show what you're doing), and some context, such as the data you're trying to use.

          H Offline
          H Offline
          HienTB
          wrote on last edited by HienTB
          #4

          @mzimmers My qml code:

          import QtWebView                        1.15
          
          
              Item{
                  id: webview
                  width: parent.width * 2/3
                  height: parent.height
                  anchors.centerIn: parent
                  WebView{
                      id: webviewId
                      url: "http://stackexchange.com/"
                      anchors.fill: parent
                  }
              }
          
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved