summaryrefslogtreecommitdiff
path: root/examples/Main.qml
diff options
context:
space:
mode:
authorafix.space <laurent@afix.space>2026-07-09 19:34:22 +0200
committerafix.space <laurent@afix.space>2026-07-09 19:34:22 +0200
commit5c369a5d98dbab80903dfcb7c52625c78228e789 (patch)
treee17ac19cc282778dd14aa6cdac3b50481e55e9ea /examples/Main.qml
feat: PySide6 dev environment with runnable examplesHEADmain
Flake devShell (PySide6 6.11 on Python 3.13, designer, uic/rcc from qtbase libexec, offline docs) plus hello_widgets and hello_quick examples. QML_IMPORT_PATH exported — nixpkgs PySide6 finds platform plugins on its own but not QML imports; see README.
Diffstat (limited to 'examples/Main.qml')
-rw-r--r--examples/Main.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/Main.qml b/examples/Main.qml
new file mode 100644
index 0000000..ed85a81
--- /dev/null
+++ b/examples/Main.qml
@@ -0,0 +1,26 @@
+import QtQuick
+import QtQuick.Controls
+
+ApplicationWindow {
+ visible: true
+ width: 320
+ height: 200
+ title: "Hello PySide6 Quick"
+
+ property int count: 0
+
+ Column {
+ anchors.centerIn: parent
+ spacing: 12
+
+ Text {
+ text: "Clics : " + count
+ anchors.horizontalCenter: parent.horizontalCenter
+ }
+
+ Button {
+ text: "Cliquer"
+ onClicked: count++
+ }
+ }
+}