compat.py 180 B

123456789101112131415
  1. from qtpy import QT_VERSION
  2. from qtpy import QtCore
  3. QT5 = QT_VERSION[0] == '5'
  4. if QT5:
  5. QPoint = QtCore.QPoint
  6. else:
  7. QPoint = QtCore.QPointF
  8. del QT_VERSION
  9. del QtCore