Тестирование Qt-интерфейсов через скриншоты

★ 6.5 · testing

qt-testing is a Claude Code skill that captures offscreen screenshots of PySide6/Qt widgets and analyzes them with vision to verify GUI rendering without displaying any windows on screen. It relies on `Qt.WA_DontShowOnScreen` to render widgets identically to on-screen display, saving each screenshot to `scratch/.qt-screenshots/` with a `{YYYY-MM-DD.HH-MM-SS}_{description}.png` naming convention. The core workflow involves creating a widget, calling `capture_widget(widget, "description")` from `scripts/qt_capture.py`, reading the saved file with the Read tool, and using vision analysis to confirm layout and appearance. Widget interactions such as button clicks use `childAt(x, y)` to map vision coordinates to child widgets, followed by direct method calls and `processEvents()` before re-capturing. Ideal for developers who need to automate Qt GUI testing and inspect component layouts in headless or CI environments.