Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Geometry of a sub-sub-sub-sub-widget in relation to the topmost container widget
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ronM71
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      QWidget::mapTo?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ronM71
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved