Creating GUI threads with Python PySide 6 and QThreadPool

Veröffentlicht am: 31 März 2025
auf dem Kanal: Penguin Tutor
2,227
53

Creating graphical applications using PySide. PySide is a python library for using the Qt Framework.
Pyside provides a convenient way of creating GUI applications. Note that much of this applies to other GUI applications, but the implementation would be different if using different programming languages or GUI frameworks.
There are some other things that are specific to Python and there are some pitfalls which I explain in the video.

The aim in this video is to show how you can use QThreadPool to ensure the application continues to be responsive when performing other operations. This is not the only option but some way of using an alternative thread or process is needed for most GUI applications.

There are documents online that explain some of this, but I found that they only give very basic examples, and I found it difficult to apply those in my project. So that’s why I thought it would be useful to provide an example how these can be applied.

For more details (including source code) see: https://www.penguintutor.com/programm...

Chapters:
00:00 Introduction
02:26 A bad example - no threads
05:59 Adding QThreadPool (with bug)
10:06 Signals and Slots
14:23 Passing arguments to the thread
20:27 Warning about performance


Auf dieser Seite können Sie das Online-Video Creating GUI threads with Python PySide 6 and QThreadPool mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Penguin Tutor 31 März 2025 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,227 Mal angesehen und es wurde von 53 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!