Skip to content

QML WPEView dynamic loading #236

Answered by bith3ad
gregor26 asked this question in Q&A
Mar 15, 2021 · 5 comments · 6 replies
Discussion options

You must be logged in to vote

Hi all,

I've followed the discussion here and checked the QT code base.

@gregor26 can you try to fix the line

connect(win, &QQuickWindow::sceneGraphInitialized, this, &WPEQtView::createWebView);

to

connect(win, &QQuickWindow::sceneGraphInitialized, this, &WPEQtView::createWebView, Qt::DirectConnection);

according the doc from https://github.com/qt/qtdeclarative/blob/5.15.2/src/quick/items/qquickwindow.cpp#L1590

@philn why did we not use the componentComplete (https://doc.qt.io/qt-5/qquickitem.html#componentComplete) function instead of using the signal/slot. @gregor26 could you test if componentComplete() is sufficient too?

Regrads,
Marco

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@philn
Comment options

Comment options

You must be logged in to vote
1 reply
@philn
Comment options

Comment options

You must be logged in to vote
1 reply
@philn
Comment options

Comment options

You must be logged in to vote
3 replies
@philn
Comment options

@bith3ad
Comment options

@philn
Comment options

Answer selected by philn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #235 on March 17, 2021 10:41.