Skip to content

QWebView handling #6

@jwintz

Description

@jwintz

Hello,

When using QWebView through deployment (using QtIosCmake), I had to manually add:

  • Q_IMPORT_PLUGIN(QWebViewModule)
  • Q_INIT_RESOURCE(qmake_QtWebView)

This has been found as follows:

λ nm ./qml/QtWebView/libdeclarative_webview.a | c++filt | grep -i static
---------------- T qt_static_plugin_QWebViewModule()
...
λ nm ./qml/QtWebView/libdeclarative_webview.a | c++filt | grep -i init
...
---------------- T qInitResources_qmake_QtWebView()
...

libdeclarative_webview.a is correctly scanned, but these corresponding macros are missing from either qt_generate_qml_plugin_import or qt_generate_plugin_import.

Adding these macros results in successful device and simulator build and deployment.

With a little guidance I'll be glad provide a merge request.

Finally, big ups for this very very impressive, helpful and functional set of cmake macros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions