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?

  • QWidget::mapTo?

  • yep.... found that out by now... thanks.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.