Skip to content

Commit a086afb

Browse files
committed
Add begin of post about qt testing
1 parent 9b8fe09 commit a086afb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
date: 2024-09-14
3+
categories:
4+
- Python
5+
- Qt
6+
- Testing
7+
- Ci
8+
tags:
9+
- Python
10+
- Testing
11+
- Article
12+
draft: true
13+
---
14+
15+
# Preventing segfaults in test suite that has Qt Tests
16+
17+
# Motivation
18+
19+
When providing an GUI application one needs to select GUI backend.
20+
If application is Python and needs to work on all popular OSes[^1]
21+
the good choice is to use Qt. It is a cross-platform GUI toolkit that
22+
has good python bindings[^2].
23+
24+
However, the Qt objects require special care when it comes to testing.
25+
It this post I will describe my experience of writing such tests based on
26+
my experience from development of [PartSeg](https://partseg.github.io/)
27+
and [napari](https://napari.org/).
28+
29+
30+
31+
32+
[^1]: This includes Windows, macOS, and various distributions of Linux.
33+
[^2]: PyQt5, PySide2 for Qt5, PyQT6, PySide6 for Qt6.

0 commit comments

Comments
 (0)