use pane on items

This commit is contained in:
Benjamin Palko 2025-09-08 10:56:07 -04:00
parent 162f8f6b6f
commit a10c2f0254
2 changed files with 46 additions and 19 deletions

View file

@ -1,21 +1,33 @@
import qs.components
import qs.config
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
GridLayout {
flow: GridLayout.TopToBottom
columns: 2
rows: 10
ColumnLayout {
spacing: Styling.layout.spacing.xl
ColumnLayout {
StyledText {
text: "Button"
font.pixelSize: 18
}
StyledPane {
StyledButton {
text: "Button"
}
}
}
ColumnLayout {
StyledText {
text: "Icon Button"
font.pixelSize: 18
}
StyledIconButton {
text: Styling.lucide.icons.square
StyledPane {
StyledIconButton {
text: Styling.lucide.icons.square
}
}
}
@ -24,11 +36,18 @@ GridLayout {
text: "Slider"
font.pixelSize: 18
}
StyledSlider {
id: slider
from: 0
to: 100
value: 50
StyledPane {
StyledSlider {
id: slider
from: 0
to: 100
value: 50
}
}
}
component FieldElement: QtObject {
property string title
property Component component
}
}