How to find widget position in list view?

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?

Nevermind, I was trying to get the position immediately after I added the widget as a child. The layout orders the children vertically after the frame.