[Development] Using native webview on OS X

Konstantin Tokarev annulen at yandex.ru
Mon Jan 22 16:49:36 CET 2018



22.01.2018, 18:37, "Alberto Mardegan" <mardy at users.sourceforge.net>:
> Hi all!
>   I've developed a desktop application which uses the WebView QML
> module, with the hope of publishing it in the Apple store. However,
> unless I am seriously mistaken, this is just not possible (or maybe the
> documentation needs some serious love).
>
> No matter what I try, it seems that QtWebEngine is always required!
>
> If I simply remove QtWebEngine from my Qt installation, building the
> application succeeds but then when I run it I get the same error as in
> https://bugreports.qt.io/browse/QTBUG-63107
>
> If I look at src/webview/qtwebviewfunctions.cpp it looks like the
> decision to use the native webview vs QtWebEngine is done at runtime,
> but for some reason it looks like one still needs to have QtWebEngine
> available in order for QtWebView to build successfully. With the obvious
> consequence that one won't be able to publish one's app into the Apple
> store.
>
> Is there some reason why the QtWebEngine support library isn't dlopen'ed
> at runtime? Can I file a bug about that?

>From [1] it seems like QT_MAC_USE_NATIVE_WEBVIEW environment variable
is required to use native backend.

[1] https://codereview.qt-project.org/#/c/162337/

>
> Ciao,
>   Alberto
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-- 
Regards,
Konstantin



More information about the Development mailing list