diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-28 08:08:27 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-05-28 11:14:34 +0200 |
commit | 76c6b9c85eb137670046c8bbb7e48a0d5f35edc6 (patch) | |
tree | 2af6fd1d99a73c71969ec8f776d1a3b011590c3e /sources | |
parent | d942bba5e679ac3549ab54e2ade2f546dca39941 (diff) |
PySide6: Extend the porting guide
Pick-to: 6.1
Fixes: PYSIDE-1583
Change-Id: Id2fc50237c8c5256a280f822b4c2e1445a9b9aec
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside6/doc/porting_from2.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/doc/porting_from2.rst b/sources/pyside6/doc/porting_from2.rst index ac4474df0..aa3e41780 100644 --- a/sources/pyside6/doc/porting_from2.rst +++ b/sources/pyside6/doc/porting_from2.rst @@ -80,9 +80,11 @@ accordingly. For example: ``QGuiApplication.primaryScreen()`` or ``QGuiApplication.screens()``. * ``QFontMetrics.width()`` has been renamed to ``horizontalAdvance()``. * ``QMouseEvent.pos()`` and ``QMouseEvent.globalPos()`` returning a ``QPoint`` + as well as ``QMouseEvent.x()`` and ``QMouseEvent.y()`` returning ``int`` are now deprecated. ``QMouseEvent.position()`` and ``QMouseEvent.globalPosition()`` returning a ``QPointF`` should be used instead. + * ``Qt.MidButton`` has been renamed to ``Qt.MiddleButton``. * ``QOpenGLVersionFunctionsFactory.get()`` instead of ``QOpenGLContext.versionFunctions()`` should be used to obtain *Open GL* functions. |