[GH-ISSUE #66] Is it possible to use WebEngine? #41

Closed
opened 2026-05-05 11:00:47 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @TripleWhy on GitHub (Sep 6, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/66

I tried executing the QML code from this example: http://doc.qt.io/qt-5/qtwebengine-webengine-minimal-example.html
However without the code from the C++ part, it does not run:

//This is interesting, but not directly related to the WebEngine
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

//This is required:
QtWebEngine::initialize();
Originally created by @TripleWhy on GitHub (Sep 6, 2018). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/66 I tried executing the QML code from this example: http://doc.qt.io/qt-5/qtwebengine-webengine-minimal-example.html However without the code from the C++ part, it does not run: ``` //This is interesting, but not directly related to the WebEngine QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); //This is required: QtWebEngine::initialize(); ```
gitea-mirror 2026-05-05 11:00:47 -06:00
  • closed this issue
  • added the
    todo
    label
Author
Owner

@pauldotknopf commented on GitHub (Sep 9, 2018):

It is possible to use QtWebEngine, but currently isn't wrapped for .NET.

We hand-craft our wrapping stuff (not auto-generated) so we generate .NET wrappers for things as needed.

I can definitely see this as "needed".

I am currently working on other tasks for Qml.Net at the moment, but I'd gladly accept a pull request.

If you are interested, here is a similar file that wraps a Qt static method: https://github.com/pauldotknopf/Qml.Net/blob/develop/src/native/QmlNet/QmlNet/qml/QQuickStyle.cpp

<!-- gh-comment-id:419686634 --> @pauldotknopf commented on GitHub (Sep 9, 2018): It is possible to use ```QtWebEngine```, but currently isn't wrapped for .NET. We hand-craft our wrapping stuff (not auto-generated) so we generate .NET wrappers for things as needed. I can definitely see this as "needed". I am currently working on other tasks for Qml.Net at the moment, but I'd gladly accept a pull request. If you are interested, here is a similar file that wraps a Qt static method: https://github.com/pauldotknopf/Qml.Net/blob/develop/src/native/QmlNet/QmlNet/qml/QQuickStyle.cpp
Author
Owner

@ColinDuquesnoy commented on GitHub (May 23, 2019):

Hi,

I am trying to use QtWebEngine but I ran into the following issue:

Qml.Net wasn't compiled with webengine.
QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter
QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter
QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter
QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter
Process finished with exit code 11.

How do I build Qml.Net with webengine support? Why is webengine support not enabled by default?

<!-- gh-comment-id:495117827 --> @ColinDuquesnoy commented on GitHub (May 23, 2019): Hi, I am trying to use QtWebEngine but I ran into the following issue: ``` Qml.Net wasn't compiled with webengine. QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter QObject::connect(QQuickWebEngineView, QWebEngineWebViewPrivate): invalid null parameter Process finished with exit code 11. ``` How do I build Qml.Net with webengine support? Why is webengine support not enabled by default?
Author
Owner

@PlumpMath commented on GitHub (Dec 7, 2021):

Is it possible now?

<!-- gh-comment-id:988330630 --> @PlumpMath commented on GitHub (Dec 7, 2021): Is it possible now?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#41
No description provided.