Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133703

QQuickSystemPalette uses deprecated QGuiApplication::paletteChanged() signal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.2
    • Quick: Other
    • None
    • All

      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 {}
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes