Utilizing Shiboken to Enhance your Qt for Python Application

A03 6.11.2019 16:00 - 16:30

Bookmark and Share

Sharon Woods
Sharon Woods
The Qt Company

Shiboken is the Python binding generator used to create the PySide module of Qt for Python, enabling users to access the power of the Qt C++ API from Python. For many Python developers, the PySide module provides everything they need to create a great Qt-based application, but others may have needs that require generating their own bindings. For instance, they may have an existing C++ library or a custom Qt-derived widget they would like to access from Python, or they would like to use a 3rd party Qt-derived library such as QWT that is not part of PySide. There are several tools available to create Python bindings, but utilizing Shiboken, which has been specifically designed to work with Qt and is part of Qt for Python, can potentially expedite the process when working on Qt-based applications. This talk will review how users can use Shiboken to enhance their Qt for Python applications, including the situations listed above and providing a means to extend Qt-based C++ applications with Python scripting. Limitations and comparisons to SIP, the binding generator for PyQt, will be reviewed. Shiboken may not be the best solution for all situations, but the intent is to increase awareness of its capabilities beyond being the generator of PySide.