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

QQuickSystemPalette uses deprecated QGuiApplication::paletteChanged() signal

    XMLWordPrintable

Details

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

    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

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes