qt-testing

Capture PySide6 Qt widgets offscreen and save screenshots for visual verification.

606|133|Updated Mar 6, 2019
One-click install
npx skills add https://github.com/talmolab/sleap --skill qt-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qt-testing
Source: https://github.com/talmolab/sleap/tree/main/.claude/skills/qt-testing
Command: npx skills add https://github.com/talmolab/sleap --skill qt-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PySide6, and includes scripts (resource) components.

What problem does it solve?

Automates offscreen captures of Qt widgets to enable visual verification without showing windows.

Core Features & Use Cases

  • Offscreen capture of PySide6 widgets for visual testing without GUI rendering.
  • Supports single widgets, dialogs, and complex layouts for GUI verification and regression checks.
  • Use with vision tools to analyze screenshots to confirm correct rendering and layout.

Quick Start

Use the qt-testing skill to capture a Qt widget offscreen by running the script or importing the helper. uv run --with PySide6 python .claude/skills/qt-testing/scripts/qt_capture.py Or import and use the helper: from scripts.qt_capture import capture_widget app = init_qt() widget = QWidget() path = capture_widget(widget, "example")

Frequently Asked Questions about qt-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I capture Qt widgets offscreen for visual testing?

Capture Qt widgets offscreen by running the qt_capture script with PySide6 or importing the capture_widget helper function to render and save screenshots without displaying a GUI window.

What is offscreen GUI testing used for in PySide6 development?

Offscreen GUI testing renders PySide6 widgets to image files without showing windows, enabling automated visual verification of layouts, dialogs, and individual widgets during development and QA.

Can I use this to test complex PySide6 dialogs and layouts?

Yes, the offscreen capture supports single widgets, dialogs, and complex layouts in PySide6, allowing you to perform visual verification and regression checks across various GUI components.

Do I need PySide6 installed to capture Qt widgets offscreen?

Yes, PySide6 is a required Python dependency to render and capture Qt widgets offscreen, alongside a minimal Python runtime to execute the capture scripts and save screenshots.

How do I analyze offscreen screenshots for Qt visual inspection?

You analyze offscreen screenshots by passing the saved image files to vision-based analysis tools, which inspect the visual rendering to confirm correct widget layout and GUI formatting.