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
Forum Updated to NodeBB v4.3 + New Features

QNetworkReply fault

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
qnetworkaccessqnetworkrequest
2 Posts 2 Posters 383 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.
  • RenioR Offline
    RenioR Offline
    Renio
    wrote on last edited by Renio
    #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
    • lorn.potterL Offline
      lorn.potterL Offline
      lorn.potter
      wrote on 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