Metadata-Version: 2.4
Name: pysideshadcn
Version: 0.2.1
Summary: PySide6 pure-Python adapter for the QtShadcn QML component library.
Author: QtShadcn
License-Expression: MIT
Project-URL: Homepage, https://github.com/QtShadcn/qtshadcn
Project-URL: Repository, https://github.com/QtShadcn/qtshadcn
Keywords: qt,qml,pyside6,shadcn,ui,components
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: THIRD-PARTY-NOTICES.md
Requires-Dist: PySide6>=6.10
Dynamic: license-file

# pysideshadcn

PySide6 adapter for the QtShadcn QML component library. It provides Python
implementations of the `ThemeManager` and `IconRegistry` QML singletons and
uses the shared QML and icon resources.

Install with `pip install pysideshadcn`. The package requires Python 3.10 or
newer and PySide6 6.10 or newer.

```python
import sys

from PySide6.QtCore import QUrl
from PySide6.QtGui import QGuiApplication
from PySide6.QtQml import QQmlApplicationEngine
from pysideshadcn import setup

app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
setup(engine)

engine.loadData(
    b"""
    import QtQuick
    import QtQuick.Controls.Basic
    import QtShadcn
    Window {
        width: 400
        height: 300
        visible: true
        QtShadcnTheme { id: theme }
        ShadcnButton { text: "Hello"; onClicked: theme.mode = "dark" }
    }
    """,
    QUrl("qrc:/main.qml"),
)

sys.exit(app.exec())
```
