Skip to content

Releases: mottosso/Qt.py

0.3.0

04 Jun 20:22
Compare
Choose a tag to compare

This release boasts one addition and one change.

  • Dockerfile included
  • Qt.py no longer supports versions of PyQt4 lower than 4.7

Docker

This is for contributors to properly test their additions to the project before committing.

$ cd Qt.py
$ docker build -t mottosso/qtpy https://github.com/mottosso/Qt.py.git
$ docker run --rm -v $(pwd):/Qt.py mottosso/qtpy
# Tests require PySide and PyQt4 bindings to be installed ... ok
# Setting QT_PREFERRED_BINDING properly forces a particular binding ... ok
# Preferring None shouldn't import anything ... ok
# 
# ----------------------------------------------------------------------
# Ran 3 tests in 0.530s
# 
# OK

PyQt4 4.7 and above.

This means sip APIs are implicitly set to API v2 so as to align with PyQt5 and both PySide's. If you are using Qt.py alongside PyQt4, make sure you either import Qt.py first, or set the APIs beforehand.

import sip

sip.setapi("QString", 2)
sip.setapi("QVariant", 2)
sip.setapi("QDate", 2)
sip.setapi("QDateTime", 2)
sip.setapi("QTextStream", 2)
sip.setapi("QTime", 2)
sip.setapi("QUrl", 2)

import PyQt4

0.2.6

03 Jun 17:03
Compare
Choose a tag to compare

First automatic release on PyPI.