Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28671

Clazy crashes with check 'install-event-filter'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 9.0.0
    • None
    • Linux/X11

    Description

      Clazy crashes with check 'install-event-filter', if the event filter is set on a static QObject.
      Example:

      /* static */  QObject ClassX::Obj;
      ...
      ClassX::Obj.installEventFilter(this);
      

      Example for a simple test (in an unrealistic use case):

      QObject o;
      o.installEventFilter(this);
      

      Clazy does not crash, if the code of the example above is change to:

      QObject o;
      (&o)->installEventFilter(this);
      

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            wschenke Winfried Schenke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: