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. XMLHttpRequest read file only work in debug with QT Creator
Qt 6.11 is out! See what's new in the release blog

XMLHttpRequest read file only work in debug with QT Creator

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 394 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.
  • I Offline
    I Offline
    ichi
    wrote on last edited by ichi
    #1

    Sorry if this question has an obvious answer.
    I am a noob in QT/QML
    I made a very simple app who can read a local text file from the XMLHttpRequest example on stack.
    It works flawlessly.
    I have set the parameter
    QML_XHR_ALLOW_FILE_READ=1

    Nothing in the debug window, the behavior of the app is perfect.
    It is a simple Main.qml file.
    The text in my file is shown in the window as it should.

    BUT, when I choose the release option from the build type, and close the QT Creator App, the app cannot read files anymore. As soon as I close QT Creator the app seems to be unable to perform XMLHttpRequest.

    Am I missing something to make this possible? I can't find it.

    Thanks in advance for the attention you put in reading this message. I'm learning C++ to handle the files, but I wish this could work...

    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