What are PyQt and PySide? PyQt and PySide are interfaces to the venerable Qt application framework developed by TrollTech and acquired by Nokia, which sold it to Digia, its current owner. Qt (pronounced “cute”) was first released in 1992, and has become a mainstay of cross-platform C++ development since; it includes not only user-interface classes, [...]
Series: PySide/PyQt Guide
Install PySide and PyQt on Windows, Mac and Linux
In the last article, I introduced you to Qt and its Python interfaces, PyQt and PySide; now that you know a bit about them, pick one and install it. I recommend PySide for two reasons: first, this tutorial is conceived in terms of PySide, and may cover a few topics that are less fully-implemented in [...]
Intro to PySide/PyQt: Basic Widgets and Hello, World!
This installment gives a introduction to the very most basic points of PySide and PyQt. We’ll talk a bit about the kinds of objects they use, and talk through a couple of very simple examples that will give you a basic idea of how Python/Qt applications are constructed. First, a basic overview of Qt objects. [...]
PySide/PyQt Tutorial: Interactive Widgets and Layout Containers
In the last installment, we looked at some of the functionality provided to all QWidget-descended Qt widgets, and we looked at one specific widget, the QLabel, in more depth. We also worked our way up to an example that illustrated the structure of a simple Python/Qt application. Thus far, however, we’re not able to do [...]
PySide/PyQt Tutorial: Using Built-In Signals and Slots
In the last installment, we learned how to create and set up interactive widgets, as well as how to arrange them into simple and complex layouts using two different methods. Today, we’re going to discuss the Python/Qt way of allowing your application to respond to user-triggered events: signals and slots. When a user takes an [...]
PySide/PyQt Tutorial: Creating Your Own Signals and Slots
You don’t have to rely solely on the signals that are provided by Qt widgets, however; you can create your own. Signals are created using the Signal class. A simple signal definition would be: Then, when the conditions for the object being tapped are satisfied, you call the signal’s emit method, and the signal is [...]