Qt 6: Missing QMouseEvent methods

Florian Bruhin me at the-compiler.org
Fri Aug 27 12:11:25 BST 2021


Hi,

It looks like QMouseEvent is missing various methods:
https://doc.qt.io/qt-6/qmouseevent.html#public-functions

vs.

    >>> from PyQt6.QtGui import QMouseEvent
    >>> dir(QMouseEvent)
    [
        Type,
        # [dunder methods...]
        'accept',
        'allPointsAccepted',
        'button',
        'buttons',
        'clone',
        'device',
        'deviceType',
        'exclusivePointGrabber',
        'globalPosition',
        'ignore',
        'isAccepted',
        'isBeginEvent',
        'isEndEvent',
        'isInputEvent',
        'isPointerEvent',
        'isSinglePointEvent',
        'isUpdateEvent',
        'modifiers',
        'point',
        'pointById',
        'pointCount',
        'pointerType',
        'pointingDevice',
        'points',
        'position',
        'registerEventType',
        'scenePosition',
        'setAccepted',
        'setExclusivePointGrabber',
        'spontaneous',
        'timestamp',
        'type'
    ]

i.e. all methods of QMouseEvent seem to be missing, only the ones
inherited from QSinglePointEvent/QPointerEvent/QInputEvent/QEvent are
present.

Florian

-- 
            me at the-compiler.org | https://www.qutebrowser.org 
       https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
       GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
             I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210827/0a70270e/attachment.sig>


More information about the PyQt mailing list