[Interest] Position y() of widget inside Layout

Igor Mironchik igor.mironchik at gmail.com
Wed Oct 29 20:02:53 CET 2014


Hi.

Look at this small example. It’s not fully functional but as example it’s good enough, I hope...

From: Jean Richard Lima 
Sent: Wednesday, October 29, 2014 8:34 PM
To: Interest at qt-project.org 
Subject: [Interest] Position y() of widget inside Layout

Hello!

How can I get the y () position of a widget inside another? 

I have 3 widgets within another widget when and try: geometry()->y() it returns me is always 0 when applied to the layout, if he gives me shot, but I need the layout and position, as I am dragging one over the other to switch places. 

Thank you.

              Jean Richard Lima
        Consultor de Gestão e TIC
Software House de Projetos Específicos


--------------------------------------------------------------------------------
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141029/0d91628f/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.cpp
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141029/0d91628f/attachment.ksh>


More information about the Interest mailing list