开发者

QT: Geometry of a sub-sub-sub-sub-widget in relation to the topmost container widget

I have a window widget that has a "tree" of sub-widgets under it. the widget I'm interested in, let's call it "x", gives me its geometry object in relation to its own parent. There are several "generations" of parents all the way up to my window widget.

my goal: I want to find out the x,y of "开发者_如何学运维x" in relation to my window, which is not its direct parent.

the "geometry()" of "X" gives me this information relative to its immediate parent. Any function exists to change the relative parent and get geometry() based on that?


check out the mapTo() function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜