Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. QNetworkReply fault

QNetworkReply fault

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
qnetworkaccessqnetworkrequest
2 Posts 2 Posters 373 Views
  • 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.
  • R Offline
    R Offline
    Renio
    wrote on 11 Nov 2021, 15:47 last edited by Renio 11 Nov 2021, 16:06
    #1

    Goodmorging to All!
    my application is a Front-End client developed with WebAssembly framework.
    I have a different behaviour if I run my application compiled on mingw 64 bit or webassembly.

    I want to get a xml file from server, I ask this file across a RESTful api, and load it with
    https://doc.qt.io/qt-5/qfiledialog.html#getOpenFileContent
    When I run my application in desktop mode (1) (compiled with mingw 64) I read the xml without problem
    When I run my application in web mode (2) (compiled with webassembly) in Chrome, my program goes in fault because the QNetworkReply (associated with QNetworkAccessManager) return the qt home page "qt.io"
    The only difference beetwen (1) and (2) is the compile procedure.
    I use the same value for schema, host, port, and request.
    Can someone help me to understand this behaviour?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 23 Nov 2021, 02:45 last edited by
      #2

      Need more information, such as Qt version, any messages you may see in the browser console.

      Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
      Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

      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