English French [qt-devnet.developpez.com] 한국어 日本語

Setting up PySide

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:

  1. 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:

  1. import PySide
  2. print(PySide.__version__)

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:

  1. import PySide.QtCore
  2. print(PySide.QtCore.__version__)

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:

  1. print(PySide.QtCore.qVersion())

The result could also be 4.7.4.

Categories: