Skip to content

2024

Preventing segfaults in test suite that has Qt Tests

Motivation

When providing an GUI application one needs to select GUI backend. If application is Python and needs to work on all popular OSes1 the good choice is to use Qt. It is a cross-platform GUI toolkit that has good python bindings2.

However, the Qt objects require special care during testing. It this post I will describe my experience of writing such tests based on my work on PartSeg and napari.