From 103e0a8c0072325c43c877b6fe814ce6c446582f Mon Sep 17 00:00:00 2001 From: Alexis Drai Date: Wed, 7 Jun 2023 08:32:58 +0200 Subject: [PATCH] La horde de boutons --- qml/pages/FirstPage.qml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/qml/pages/FirstPage.qml b/qml/pages/FirstPage.qml index 2f63f47..029e95c 100644 --- a/qml/pages/FirstPage.qml +++ b/qml/pages/FirstPage.qml @@ -84,14 +84,18 @@ Page { } } - BigButton { - buttonText.text: "First Button" - onClicked: console.log("First Button clicked!") - } + Flow { + width: parent.width + spacing: Theme.paddingLarge - BigButton { - buttonText.text: "Second Button" - onClicked: console.log("Second Button clicked!") + Repeater { + model: 20 + + BigButton { + buttonText.text: "Button " + (index + 1) + onClicked: console.log("Button " + (index + 1) + " clicked!") + } + } } } }