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

Crash dynamic_casting QObject* originating from Qt5WebEngineCore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.3, 5.13.0, 5.14.0 Alpha
    • 5.9.7, 5.12.1
    • WebEngine
    • None
    • Linux/X11, Windows
    • 1f77d4709946511b919810354f19875824399096 (qt/qtwebengine/5.12)

    Description

      The application crashes when dynamic_casting eventFilter()'s first parameter 'QObject obj' to a QWidget. qobject_casting works.

      The crash happens while eventFilter() is called with an obj originating from Qt5WebEngineCored, see attached screenshot.

      A minimal application which reproduces the crash is attached.

       

      PS: There is the class MessagePumpForUIQt which inherits QObject, but has no Q_OBJECT-Macro.

      Attachments

        Issue Links

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              qv Adi T
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: