-
Hi, I'm evaluating WPEQt a bit and have an issue with WPEView control. When using WPEView component in root QML file, all works as expected. But in case QML component which includes WPEView is dynamically created, WPEView is not loaded and nothing is shown. Example 1 - WPEView is used in the root QML file, all is ok.
Example 2 - loaded dynamically (WPEView is part of MyRect which is loaded on button press), WPEView is not loaded/shown.
Appreciate any answers or ideas on how to continue. Thanks. Gregor |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Can you check if this method returns too early? https://github.com/WebKit/WebKit/blob/main/Source/WebKit/UIProcess/API/wpe/qt/WPEQtView.cpp#L175 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. Don't have a means at the moment to check/verify this. Did a small further check and tried to update the url, change enable/visible status on some delay after dynamic control gets loaded and results for the wpeview are the same .. nothing visible and no status/loading changes. |
Beta Was this translation helpful? Give feedback.
-
Managed to add some console outputs to WPEQtView.cpp method WPEQtView::updatePaintNode.
Using this on root qml, results are as follows:
While results on dynamic loading are next:
Method is called when all controls on dynamic class are loaded and not getting beyond 1. |
Beta Was this translation helpful? Give feedback.
-
Added some more ouputs (methods geometryChanged, configureWindow, createWebView) and results are as follows:
Method configureWindow gets trough, but createWebView is never called. As it looks, signal is not emitted during dynamic load. Should there be another signal for this case? |
Beta Was this translation helpful? Give feedback.
-
Hi all, I've followed the discussion here and checked the QT code base. @gregor26 can you try to fix the line
to
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, |
Beta Was this translation helpful? Give feedback.
Hi all,
I've followed the discussion here and checked the QT code base.
@gregor26 can you try to fix the line
to
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