Skip to main content

Python bindings for the Qt cross-platform application and UI framework

Project description

PySide2

Introduction

PySide2 is the official Python module from the Qt for Python project, which provides access to the complete Qt 5.12+ framework.

The Qt for Python project is developed in the open, with all facilities you'd expect from any modern OSS project such as all code in a git repository and an open design process. We welcome any contribution conforming to the Qt Contribution Agreement.

Installation

Since the release of the Technical Preview it is possible to install via pip, both from Qt's servers and PyPi:

pip install PySide2

Dependencies

PySide2 versions following 5.12 use a C++ parser based on Clang. The Clang library (C-bindings), version 6.0 or higher is required for building. Prebuilt versions of it can be downloaded from download.qt.io.

After unpacking the archive, set the environment variable LLVM_INSTALL_DIR to point to the folder containing the include and lib directories of Clang:

7z x .../libclang-release_60-linux-Rhel7.2-gcc5.3-x86_64-clazy.7z
export LLVM_INSTALL_DIR=$PWD/libclang

On Windows:

7z x .../libclang-release_60-windows-vs2015_64-clazy.7z
SET LLVM_INSTALL_DIR=%CD%\libclang

Building from source

For building PySide2 from scratch, please read about getting started. This process will include getting the code:

git clone https://code.qt.io/pyside/pyside-setup
cd pyside-setup
git branch --track 5.12 origin/5.12
git checkout 5.12

then install the dependencies, and following the instructions per platform. A common build command will look like:

python setup.py install --qmake=<path/to/qmake/> --parallel=8 --build-tests

You can obtain more information about the options to build PySide and Shiboken in our wiki.

Documentation and Bugs

You can find more information about the PySide2 module API in the official Qt for Python documentation.

If you come across any issue, please file a bug report at our JIRA tracker following our guidelines.

Community

Check #qt-pyside, our official IRC channel on FreeNode, or contact us via our mailing list.

Licensing

PySide2 is available under both Open Source (LGPLv3/GPLv2) and commercial license. Using PyPi is the recommended installation source, because the content of the wheels is valid for both cases. For more information, refer to the Qt Licensing page.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PySide2, version 5.13.1
Filename, size File type Python version Upload date Hashes
Filename, size PySide2-5.13.1-5.13.1-cp27-cp27m-macosx_10_12_intel.whl (119.8 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PySide2-5.13.1-5.13.1-cp27-cp27mu-manylinux1_x86_64.whl (152.6 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PySide2-5.13.1-5.13.1-cp35.cp36.cp37-abi3-macosx_10_12_intel.whl (120.1 MB) File type Wheel Python version cp35.cp36.cp37 Upload date Hashes View hashes
Filename, size PySide2-5.13.1-5.13.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (153.1 MB) File type Wheel Python version cp35.cp36.cp37 Upload date Hashes View hashes
Filename, size PySide2-5.13.1-5.13.1-cp35.cp36.cp37-none-win32.whl (101.4 MB) File type Wheel Python version cp35.cp36.cp37 Upload date Hashes View hashes
Filename, size PySide2-5.13.1-5.13.1-cp35.cp36.cp37-none-win_amd64.whl (120.2 MB) File type Wheel Python version cp35.cp36.cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page