Setting up PySide

From Qt Wiki
Jump to: navigation, search

English [French] 한국어 日本語

Attention: a port of PySide to Qt 5.x started in 2014, the progress and more details about this project can be found under PySide 2

Before you can work with PySide, download and install the following:

Note: PySide is not yet compatible with Qt 5.x. Please use Qt 4.8 instead.

Verify PySide Installation

To check if PySide is installed correctly, launch a python console and type:

import PySide

If no error is returned, you have successfully installed PySide, and can start developing with Qt and Python. You can also check the version of your PySide installation:

import PySide

The result should be something like 1.0.0.

Verify Qt Installation

To check what version of Qt is used to compile PySide, launch a python console and type:

import PySide.QtCore

The result should be something like 4.7.4.

Since the Qt version used to compile PySide may differ from the one used to run it, you might also want to check the current running version of Qt: