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

QApplication::paletteChanged is not emitted when palette changes

XMLWordPrintable

    • Windows
    • 4afd9234c2f16536a360370a5b302f943bae727d (qt/qtbase/dev)

      As in summary.

      Example code:

       

      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QObject::connect(&a, &QApplication::paletteChanged, []{ qDebug() << "Not gonna happen :("; });
          a.setPalette(QPalette(Qt::red));
          return a.exec();
      }
      

      The signal is defined in QGuiApplication but QApplication doesn't seem to emit it.

        For Gerrit Dashboard: QTBUG-71186
        # Subject Branch Project Status CR V

            frederik Frederik Gladhorn
            chrisaverage Krzysztof Kawa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes