pyqt-styling

Style PyQt/PySide6 widgets with Qt Style Sheets and selectors.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Leonard-Data/report-convertor --skill pyqt-styling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyqt-styling
Source: https://github.com/Leonard-Data/report-convertor/tree/main/.agents/skills/pyqt-styling
Command: npx skills add https://github.com/Leonard-Data/report-convertor --skill pyqt-styling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Styling PyQt/PySide6 apps can be inconsistent across widgets and themes; this Skill provides a comprehensive guide to using Qt Style Sheets (QSS) to create consistent visuals.

Core Features & Use Cases

  • Type, class, and id selectors with QSS for precise widget targeting.
  • Pseudo-states support (hover, pressed, focus, disabled) for interactive feedback.
  • Dark and themed styling with practical examples, including applying styles at application and widget levels.

Quick Start

Create and apply a Qt Style Sheet to your app to customize colors, borders, and typography for Qt widgets.

Frequently Asked Questions about pyqt-styling

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

FAQPage Schema
How do I apply consistent Qt styling across PyQt and PySide6 widgets?

You can apply consistent Qt styling across PyQt and PySide6 widgets by using Qt Style Sheets (QSS) with type, class, and id selectors. This ensures reliable themes and predictable visuals across your desktop application.

What is the best way to create a dark theme for a PyQt application?

The best way to create a dark theme for a PyQt application is to define a QSS stylesheet with dark-theme patterns. You can apply these styles at the application or widget level to customize colors, borders, and typography.

How do I add interactive hover and pressed states to PySide6 UI components?

You add interactive hover and pressed states to PySide6 UI components by utilizing QSS pseudo-states. Defining pseudo-states like hover, pressed, focus, and disabled provides precise interactive feedback for your widgets.

Does QSS support precise targeting for individual Qt widgets?

Yes, QSS supports precise targeting for individual Qt widgets through class and id selectors. This allows you to reliably style specific components without affecting unrelated parts of your user interface.

Why does my PyQt stylesheet look inconsistent across different widgets?

Your PyQt stylesheet looks inconsistent because styling PyQt and PySide6 apps can be inconsistent across widgets without a comprehensive guide. Using detailed QSS selectors and a defined stylesheet workflow guarantees predictable visuals.