Details
Description
It looks like Qt 5.15 never emits the recentlyAudibleChanged signal, which worked fine with Qt 5.14. To reproduce, patch simplebrowser so it logs something when the signal is emitted:
diff --git i/examples/webenginewidgets/simplebrowser/webpage.cpp w/examples/webenginewidgets/simplebrowser/webpage.cpp index 9f7038cd..45b12783 100644 --- i/examples/webenginewidgets/simplebrowser/webpage.cpp +++ w/examples/webenginewidgets/simplebrowser/webpage.cpp @@ -59,6 +59,7 @@ #include <QStyle> #include <QTimer> #include <QWebEngineCertificateError> +#include <QDebug> WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) : QWebEnginePage(profile, parent) @@ -67,6 +68,7 @@ WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) connect(this, &QWebEnginePage::featurePermissionRequested, this, &WebPage::handleFeaturePermissionRequested); connect(this, &QWebEnginePage::proxyAuthenticationRequired, this, &WebPage::handleProxyAuthenticationRequired); connect(this, &QWebEnginePage::registerProtocolHandlerRequested, this, &WebPage::handleRegisterProtocolHandlerRequested); + connect(this, &QWebEnginePage::recentlyAudibleChanged, []() { qDebug() << "audible"; }); #if !defined(QT_NO_SSL) || QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) connect(this, &QWebEnginePage::selectClientCertificate, this, &WebPage::handleSelectClientCertificate); #endif
and then play e.g. a YouTube video. It will get emitted with Qt 5.14 but not 5.15.