On Sat, 27 Sept 2025 at 02:13, Scott Bloom <[email protected]> wrote:
>
> js: Fetch API cannot load qrc:/pathtofile/base.json. URL scheme "qrc" is not 
> supported.
>
> I have confirmed that the file DOES exist from the C++ QFile based world, but 
> Im stumped trying to figure out what is going on.

Access to qrc URLs has some restrictions within Qt WebEngine.
You can change this behaviour with QWebEngineUrlScheme, see:
https://doc.qt.io/qt-6/qtwebengine-changes-qt6.html#qrc-scheme

Given your error, you should probably look into
QWebEngineUrlScheme::FetchApiAllowed

Cheers,

Benjamin
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to