Qt for Python/GettingStarted/Windows
(Page under development)
The Qt library has to be built with the same version of MSVC as Python and PySide2.
Requirements
- Qt package from https://www.qt.io or a custom build of Qt (preferably Qt 5.9 or Qt 5.6)
- Python from https://www.python.org/downloads/ (Python 3.6 or Python 2.7)
- MSVC2015 (for Python 3 on Windows), MSCVC2008 (for Python 2 on Windows)
- CMake from https://cmake.org/download/ (>= 3.1)
- libclang (required for the 5.9 and dev branches) from download.qt.io (>= 3.9)
- LLVM
- virtualenv (optional but recommended)
- Python sphinx package for documentation (optional, pip install sphinx)
Development
Development happens in the 5.9 and dev branches of the pyside-setup repository.
The top level repository has the following submodules:
- sources/pyside2-tools: uic, rcc tools
- examples/
Contributions follow the standard process.
It is helpful to have debug binaries and/or symbols for Python available. On Windows, this is done by choosing Customized Installation when installing Python and ticking the respective check boxes.
It is also recommended to use a Virtual Environment for testing to be able to always start from a clean base and avoid issues with write permissions in installations.
On Windows an installation step may be required:
python -m pip install virtualenv python -m virtualenv testenv
The Virtual Environment is activated by·
CALL testenv\Scripts\activate.bat
Before building the first time, the module Sphinx should be installed into the virtual environment:·
pip install sphinx