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 (286) PyQt6 (128) PySide6 (17) PyQt5 (49) Streamlit (0) Tkinter (1) PySide2 (6) Kivy (0)

Accessing a TableView from a Second QML File with PySide2

How to connect a Python QAbstractTableModel to a TableView loaded from a separate QML file

How to show a custom cursor on a PyQtGraph plot?

Changing the OS cursor and implementing a custom crosshair

How to fix widgets appearing as separate windows?

Understanding Qt parents and layouts and the effect on widget position

Running Python script with QProcess after freeze

How to bundle and run external Python scripts from a frozen PyQt6 application

QDateEdit widget does not respond to setSelectedSection

Why setSelectedSection doesn't work in __init__ and how to fix it

How can I enable editing on a QTableView in PyQt5?

Modifying your model to allow editing of your data source

How can I enable editing on a QTableView in PyQt6?

Modifying your model to allow editing of your data source

How to Enable Editing on a QTableView in PySide2

Modifying your QAbstractTableModel to allow in-place editing of table data

How can I enable editing on a QTableView in PySide6?

Modifying your model to allow editing of your data source

Why QTableView Row Deletion Only Works Once

Understanding how beginRemoveRows, endRemoveRows, and your underlying data work together in Qt model/view

Using QThreadPool.start() with a Simple Function in PySide6

Run background tasks without creating a QRunnable by passing a callable directly to QThreadPool

Create a tree using threads

How to populate a QTreeView using QThreadPool and QRunnable without blocking the GUI

QTimer, threads, and non-gui events

How to coordinate timed events with sequential logic in PySide6

Fixing the Drop Prohibited Icon in QTableView Drag and Drop

How to enable row reordering with drag and drop in QTableView using a custom model

Rendering Radial Gradients in in PyQt6

How to fix the "Could not parse node: radialGradient" error when rendering SVGs in PyQt6

How to refresh a QTreeView in PyQt?

Updating the displayed directory in a QTreeView with QFileSystemModel

Why can't the button be set size and other styles?

Understanding widget parenting and layouts when combining custom widgets with Qt Designer

QDataWidgetMapper with QSqlRelationalTableModel and QComboBoxes

How to correctly map relational database fields to combo boxes using QDataWidgetMapper

Is it possible to access system env vars in Qt?

Reading sourced Bash environment variables from your Python Qt application

Actions in one thread changing data in another

How to communicate between threads and windows in PyQt6

GUI Freezing on Second Run with QThread

Why your PyQt worker thread stops responding after the first click, and how to fix it

Adding Pagination to QTableView in PyQt6

How to display large datasets page by page with navigation controls

How is QMdiArea supposed to be used?

Working with QMdiArea and QMdiSubWindow in PyQt6, including how to handle subwindow closing and visibility

Can You Develop Web Apps with PyQt?

Understanding the difference between PyQt for desktop apps and Python web frameworks like Flask and Django

Editing QTableView cells

Allowing users to update the data in a model view
1 2 3 4 5 6 7 8 9 10 11 12