Details
Description
QWebEnginePage url property is missing NOTIFY. While it has the urlChanged signal, it is missing from the Q_PROPERTY declaration.
This makes this class not usable from QML. Whenever you try to bind to this property
Control {
property var page: SomeAttachedProperty.page
property url url: page.url
}
you get error in logs:
QQmlExpression: ... depends on non-NOTIFYable properties: QWebEnginePage::url
QWebEnginePage class has urlChanged dignal, but is is not declared as NOTIFY for url property:
class Q_WEBENGINECORE_EXPORT QWebEnginePage : public QObject { ... Q_PROPERTY(QUrl url READ url WRITE setUrl) ... Q_SIGNALS: ... void urlChanged(const QUrl &url); ... }
Attachments
For Gerrit Dashboard: QTBUG-117658 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
511750,2 | Add NOTIFY in QWebEnginePage property url definition | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
513605,2 | Add NOTIFY in QWebEnginePage property url definition | 6.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |
517673,2 | Add NOTIFY in QWebEnginePage property url definition | 6.5 | qt/qtwebengine | Status: MERGED | +2 | 0 |