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

No ApplicationPaletteChange event in QApplication

XMLWordPrintable

    • Linux/X11

      I wrote a small project - system_changes (see Attachment: system_changes.pro, myapplication.h and main.cpp).

      I override bool event(QEvent *) method in MyApplication class and log information about all event's types.

      bool event(QEvent *event) override {
              qWarning() << event->type();

              return QApplication::event(event);
       }

      In the Qt 5.5.1 there are messages

      QEvent::Type(ApplicationPaletteChange)

      QEvent::Type(ApplicationPaletteChange)

      in the log after system style is being change to High Contrast and back.

      But int the Qt 5.9.2 there are no such messages in log.

      Why so?

       

        1. main.cpp
          0.2 kB
          Olya
        2. myapplication.h
          0.4 kB
          Olya
        3. system_changes.pro
          0.1 kB
          Olya
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            frederik Frederik Gladhorn
            _olya Olya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes