Commit dc000a4
committed
fix: fix AlertToolTip positioning and z-order issues
1. Changed AlertToolTip positioning from relative to absolute
coordinates by calculating global position of target item
2. Added parent assignment to Overlay.overlay to ensure proper z-
ordering above other UI elements
3. Added import for QtQuick.Controls to access Overlay component
4. Modified x and y calculations to use global coordinates instead of
local coordinates
5. Added __itemGlobalPos property to compute cumulative position by
traversing parent hierarchy
Log: Fixed AlertToolTip display issues where tooltips were hidden behind
other UI elements
Influence:
1. Test AlertToolTip display with various target elements at different
hierarchy levels
2. Verify tooltip appears above all other UI elements including dialogs
and popups
3. Test tooltip positioning accuracy when target element is nested in
multiple containers
4. Verify smooth animation behavior during tooltip show/hide transitions
5. Test tooltip display in complex layout scenarios with overlapping
elements
fix: 修复AlertToolTip定位和层级问题
1. 将AlertToolTip定位从相对坐标改为绝对坐标,通过计算目标项的全局位置
2. 添加父级设置为Overlay.overlay以确保正确的z轴排序,显示在其他UI元素
之上
3. 添加QtQuick.Controls导入以访问Overlay组件
4. 修改x和y计算使用全局坐标而非局部坐标
5. 添加__itemGlobalPos属性通过遍历父级层次结构计算累积位置
Log: 修复AlertToolTip显示问题,解决工具提示被其他UI元素遮挡的情况
Influence:
1. 测试AlertToolTip在不同层级目标元素上的显示
2. 验证工具提示是否显示在所有其他UI元素(包括对话框和弹出窗口)之上
3. 测试当目标元素嵌套在多个容器中时工具提示定位的准确性
4. 验证工具提示显示/隐藏过渡时的平滑动画行为
5. 测试在复杂布局场景中工具提示的显示效果
PMS: BUG-3529611 parent 4da61c6 commit dc000a4
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 | | |
20 | 31 | | |
21 | 32 | | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | | - | |
31 | 42 | | |
32 | 43 | | |
33 | 44 | | |
| |||
0 commit comments