Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8.2
-
None
Description
QQuickSystemPalette uses deprecated QGuiApplication::paletteChanged() signal.
QQuickSystemPalette::QQuickSystemPalette(QObject *parent) : QObject(*(new QQuickSystemPalettePrivate), parent) { Q_D(QQuickSystemPalette); d->group = QPalette::Active; connect(qApp, SIGNAL(paletteChanged(QPalette)), this, SIGNAL(paletteChanged())); }
It was deprecated in https://codereview.qt-project.org/c/qt/qtbase/+/299644
This causes a problem at least when you disable building of deprecated code in Qt.
For instance there is a warning
qt.core.qobject.connect: QObject::connect: No such signal QGuiApplication::paletteChanged(QPalette)
when you are trying to instantiate SystemPalette
import QtQuick Window { width: 300 height: 200 visible: true SystemPalette {} }
Attachments
Issue Links
- relates to
-
QTBUG-37270 global event filter installed by QQuickSystemPalette can cause performance issues
-
- Closed
-