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

installEventFilter documentation example does not compile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.6.1
    • Documentation
    • None
    • Windows

      The example code in the documentation for QObject::installEventFilter shows a "KeyPressEater" which does a static_cast from QEvent to QKeyEvent, but these classes are not directly related anymore. I had to cast from QEvent to QInputEvent and then to QKeyEvent.

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

            docteam Qt Documentation Team
            bparker Brad Parker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes