Qt 6: Missing QMouseEvent methods
phil at riverbankcomputing.com
Fri Aug 27 13:47:23 BST 2021
On 27/08/2021 13:02, Florian Bruhin wrote:
> On Fri, Aug 27, 2021 at 12:36:05PM +0100, Phil Thompson wrote:
>> On 27/08/2021 12:11, Florian Bruhin wrote:
>> > 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)
>> > [
>> > [...]
>> > ]
>> > i.e. all methods of QMouseEvent seem to be missing, only the ones
>> > inherited from QSinglePointEvent/QPointerEvent/QInputEvent/QEvent are
>> > present.
>> ...which are the ones you should use.
>> PyQt6 doesn't wrap anything that was marked as deprecated in Qt
> Ah. For some reason they aren't marked as such in the Qt 6.1 docs, but
> indeed are in the 6.2 ones:
>> pos() was missing though.
> flags() too.
It was deprecated in 6.0.0 - documentation bug.
More information about the PyQt