ITADN

`ToolTip` on `StandardTableView` creates a compilation error

#11990Closednpwoods 创建于 2026-06-06
need triaging
N
npwoodscommented
### Bug Description In the attached sample, having `ToolTip` on `StandardTableView` generates an error: ``` 'StandardTableView' cannot have children. Only components with @children can have children ``` I suppose this statement is literally true, but IMHO it should be possible to have a `ToolTip` on a `StandardTableView` ### Reproducible Code (if applicable) ```slint import { StandardTableView, VerticalBox, CheckBox } from "std-widgets.slint"; export component Example inherits Window { width: 400px; height: 400px; VerticalLayout { Text { text: "Last row: " + last-row; } StandardTableView { width: 100%; height: 100%; columns: [ { title: "Header 1" }, { title: "Header 2" }, ]; rows: [ [ { text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" } ], [ { text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" } ], [ { text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" } ], [ { text: "Item 1" }, { text: "Item 2" }, { text: "Item 3" } ] ]; ToolTip { placement: pointer; text: "My Tooltip"; } } } } ``` ### Environment Details - Slint Version: `15cb0a2778229ed29f04ff80c3460981043e2dc7` - Platform/OS: Windows 11 - Programming Language: Slint - Backend/Renderer: Default ### Product Impact _No response_
关闭于 2026-06-07 1 条评论