Static build of QtWebEngine dependent application

后端 未结 1 1737
广开言路
广开言路 2020-12-21 02:57

I have an application (audio player for http://vk.com) which uses OAuth 2.0 authorization. What i did was that i implemented QtWebEngineView object and used it to open an au

相关标签:
1条回答
  • 2020-12-21 03:34

    Yes, webengine can't be built statically. More info is here: http://lists.qt-project.org/pipermail/qtwebengine/2015-December/000264.html.

    What you can do, is use C++ libraries (such as https://github.com/sirikata/liboauthcpp) for OAuth and add them to your project: http://doc.qt.io/qt-5/third-party-libraries.html. After that expose that to qml which is fairly simple: http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html

    That way you can create simple authorization page using QML and authenticate using underlying C++ library.

    0 讨论(0)
提交回复
热议问题