ohos: Add qrc support


ArkWeb uses a native scheme handler: a custom scheme is registered on
the web kernel, and the handler callbacks then run on the web engine
IO thread for every request matching that scheme.

Register the "qrc" scheme and serve the embedded resources from the
handler using QResource. A missing resource is reported to the engine
with ERR_FILE_NOT_FOUND.

Because OH_ArkWeb_RegisterCustomSchemes() must run before
the web engine is initialized, it is called together with
WebviewController.initializeWebEngine() before the first Web component
is created. The handler is then bound to each WebView through its
webTag once the component exists.

Task-number: QTBUG-146838
Pick-to: 6.12
Change-Id: I5567cb4ffd3a5451bfed027e11bec91e9c5ce42b
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Zbigniew Chyla <zbigniew.chyla@qt.io>
commita5bbb34e6674f222d6e11063be2da41b65139b67
parent5ee048a8b39eddc915993e0b8f4cb5fbfd7cdf69
authorDennis Kim <dennis.kim@qt.io>
committerDennis Kim <dennis.kim@qt.io>
commit timeThu, 9 Jul 2026 15:02:03 +0000