Python GUI FAQ

Common Python GUI Questions, Answered

Answers to our users most frequently answered questions, from licensing, packaging and libraries, to PyQt tips and tricks.

Showing articles for All (282) PyQt6 (107) PySide6 (15) PyQt5 (68) Streamlit (0) Tkinter (1) PySide2 (6) Kivy (0)

Styling PyQt/PySide Apps Installed via Pip on Linux

How to handle Qt styling and themes when distributing your Python GUI app through pip

Licensing Differences Between PyQt5 and PySide2

Understanding GPL, LGPL, and what they mean for your Python GUI projects

Licensing Differences Between PyQt6 and PySide6

Understanding GPL, LGPL, and what they mean for your Python GUI projects

Recommended way to install PyQt5 with fbs on macOS

Getting the right combination of Python, PyQt5, and PyInstaller for fbs on macOS

PyInstaller macOS issue with QCombobox not refreshing

Fixing widget redraw problems in PyQt5 apps packaged with PyInstaller on macOS

Solving Common PyInstaller Problems on macOS

How to fix file paths, reduce bundle sizes, and handle macOS-specific packaging issues

Optimizing paintEvent Performance in PyQt6 Custom Widgets

Avoid common pitfalls that cause high CPU usage when painting custom widgets

Can You Use Qt Creator Community Edition at Work?

Understanding the licensing rules for Qt Designer, PyQt and PySide in commercial and in-house settings

Programmatically select multiple rows in QTableView

Use QItemSelection and QItemSelectionModel to highlight multiple rows in a QTableView from code

Reloading UI Changes in PyQt6 Without Restarting PyCharm

How to see your Qt Designer changes immediately during development

Saving and Restoring Application Settings with QSettings in PyQt5

Learn how to use QSettings to remember user preferences, window sizes, and configuration options between sessions

Adding QTabWidget to a Layout Alongside Other Widgets in PyQt6

How to combine QTabWidget with other layouts without it taking over your entire window

Clean up on exit — Stopping threads when closing a PyQt6 application

How to properly shut down background threads and workers when your application window is closed

Iterate through the contents of rows selected from a QTableView QSqlQueryModel

Learn how to retrieve and work with user-selected rows in a QTableView backed by a QSqlQueryModel

Pass multiple models to QListView

Combine worker state from multiple managers into a single Qt view

How to Search a QTableWidget and Highlight Results in PyQt6

Use findItems() to search through your table data and jump to matching results

How to make QSplitter respond to double clicking?

Add double-click collapse and restore to QSplitter by creating a custom QSplitterHandle

Plotting Binary File Data with Matplotlib in PyQt6

Load binary files and plot them interactively using Matplotlib and PyQt6

PyQt5 runJavaScript with QtWebEngine

Execute JavaScript in web pages embedded in your PyQt5 applications

Image inserted in label using Qt Designer does not load from Python

How to compile and use Qt resource files so images appear in your application

PyQt5 MYSQL driver not loaded on Windows

How to fix the "QMYSQL driver not loaded" error when connecting to MySQL from PyQt5

Updating PyQt6 Widgets from Functions and Classes

How to get data back into your labels and widgets instead of just printing to the console

How to compile PyQt5 or PySide2 code with Nuitka

Convert your Python Qt applications to fast native executables using the Nuitka compiler

How to compile PyQt6 or PySide6 code with Nuitka

Convert your Python Qt applications to fast native executables using the Nuitka compiler
1 2 3 4 5 6 7 8 9 10 11 12