I have wdigets arranged vertically in a vertical layout. I need to get the position of those elements within the layout. If I call getPosition(), it returns 0. I looked into the source code (LayoutManager.cpp) and I saw that when arranging items vertically, it sets the widget’s position. However, when I call get position on a listed object, all it returns is 0,0.
How do I get the actual position of an object within a vertical layout?