mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00

This is not intuitive since the position of the PopupWindow will not be handled by the Layout
29 lines
No EOL
848 B
Text
29 lines
No EOL
848 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
|
|
|
|
import { HorizontalBox } from "std-widgets.slint";
|
|
|
|
component MyP inherits PopupWindow {}
|
|
|
|
export component Component {
|
|
|
|
GridLayout {
|
|
p1 := PopupWindow {}
|
|
// ^warning{PopupWindow shouldn't be a children of a layout}
|
|
Row {
|
|
PopupWindow {}
|
|
// ^warning{PopupWindow shouldn't be a children of a layout}
|
|
}
|
|
|
|
Rectangle {
|
|
PopupWindow {} // no warnings there
|
|
}
|
|
|
|
HorizontalBox { PopupWindow {} }
|
|
// ^warning{PopupWindow shouldn't be a children of a layout}
|
|
VerticalLayout { MyP {} }
|
|
// ^warning{PopupWindow shouldn't be a children of a layout}
|
|
|
|
}
|
|
|
|
} |