Vendoring Qt.py

How do you know a user doesn’t have the wrong version of Qt.py when running your application? – Simple, you bundle Qt.py with your application. Here’s a short write-up on how you could go about doing just that. What’s “vendoring”? Bundling a third-party application with your own application is sometimes referred to as “vendoring”. By vendoring, you explicitly control which version of a dependency is being used with your application. Since there are numerous versions of Qt....

May 4, 2017 · 4 min
Maya showing an import error in the script editor

Dealing with Maya 2017 and PySide2

Maya 2017 was released today and with it comes a big change; PySide (and PyQt4) no longer works with Maya. This guide explains how to deal with that and make your Python and PySide/PyQt scripts compatible with Maya 2017 as well as older Maya versions. This guide is also applicable to e.g. Nuke or any other Python-enabled DCC app which uses Qt. Background (Qt4 vs Qt5) Starting with Maya 2011, Maya’s user interface is built using the Qt toolkit....

July 25, 2016 · 5 min

Developing with Qt.py

This post aims to give an introduction to the Qt.py project and how to get set up with it for PySide/PyQt4 and PySide2/PyQt5 development. Contents What is Qt.py How does it work? Installing Qt.py Caveats Contributing Closing comments What is Qt.py? Qt.py is a Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5 – which enables you to write software that dynamically chooses the most desireable bindings based on what’s available....

July 25, 2016 · 6 min

Installing Qt.py (advanced methods)

Qt.py can be installed in many ways, depending on your needs. This post aims to outline some common approaches: Install using pip Install into an application’s custom Python build Vendoring Make Qt.py available using sys.path and site.addsitedir Install using pip The probably most common way to install Qt.py (and as mentioned in the project’s README) is to install via pip: pip install Qt.py Please note that it’s not recommended to “pip install” into your operating system’s default site-packages....

July 25, 2016 · 3 min