pytest-qt icon indicating copy to clipboard operation
pytest-qt copied to clipboard

pytest plugin for Qt (PyQt5/PyQt6 and PySide2/PySide6) application testing

Results 45 pytest-qt issues
Sort by recently updated
recently updated
newest added

If qtbot tries to stop waiting while `QApplication.processEvents()` is being called, the test will hang indefinitely. What happens is that: - qtbot creates a `QEventLoop` - an event calling `QApplication.processEvents()`...

bug :bug:
macos :apple:

Hello - I'd like to ask a question if you don't mind. Given a simple message box application such as : ``` from PyQt5.QtWidgets import QMessageBox, QWidget def messageBoxFactory(parent :...

### Bug I ran into this issue when trying to fix a bug with [pyvistaqt](https://qtdocs.pyvista.org/). It appears, for some reason, when all of - `PyQt5` - `PySide2` - `PyQt6` -...

Often when dealing with CI systems, I would love to able to view a screenshot of what a QWidget looked like. It got me thinking, how hard is it to...

question :question:

I stumbled upon this when setting a new project where I haven't configured mypy yet to just ignore pytest-qt: There are no type annotations. Is there a reason from this...

I use GitLab for CI and need to test my PyQt5 GUI in headless mode with `pytest-qt` (I use python 3.8 on Windows 10). To that end, I can run...

### System **OS:** Windows 10 **Python:** 3.8.10 **Qt:** PySide6 **pytest-qt:** 4.0.2 ### Problem After clicking a `QMenuBar` item, clicking away from the menu does not close it when using `qtbot`....

Referencing [this SO issue](https://stackoverflow.com/questions/16299779/qt-qgraphicsview-unit-testing-how-to-keep-the-mouse-in-a-pressed-state), I am experiencing the same problem, even with `setMouseTracking` enabled (in `windows` mode, not `headless`). It appears as if `mousePress` and `mouseClick` don't properly release mouse...

See this discussion on Twitter: https://twitter.com/VeronicaInPink/status/1129848173084717056 Ideas what to mention: - What to do on segfaults/aborts (running pytest with `-s`, `pytest-faulthandler`) - Missing `libxkbcommon-x11-0` dependency (e.g. on Travis)

docs :book:

In #239, I added support for the C++ Qt modeltester, so that the Python implementation is only used when the C++ one from Qt is not available. Nowadays, the C++...