1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4import { TabWidget } from "std-widgets.slint";
5export Test1 := Rectangle {
6 TabWidget {
7 Rectangle {}
8// ^error{Rectangle is not allowed within TabWidget. Only Tab are valid children}
9 Tab {
10 Tab {}
11// ^error{Tab can only be within a TabWidget element}
12 }
13 }
14
15 Tab {}
16// ^error{Tab can only be within a TabWidget element}
17}
18