mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 21:04:47 +00:00
21 lines
428 B
Text
21 lines
428 B
Text
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
|
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
|
|
|
|
X := Rectangle {
|
|
|
|
lay := GridLayout {
|
|
property<string> foo: "hello";
|
|
Row {
|
|
Text { text: lay.foo; }
|
|
Text {}
|
|
}
|
|
Row {Text {}}
|
|
Text{
|
|
Row {}
|
|
// ^error{Row can only be within a GridLayout element}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|