[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting real size and position for arranged controls.
[Thread Prev] | [Thread Next]
- Subject: Re: Getting real size and position for arranged controls.
- From: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Sat, 25 Jan 2025 22:33:18 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Il 25/01/25 19:01, T Lee Davidson ha scritto:
On 1/24/25 10:39 PM, Carlos Prieto wrote:Hi! I've noticed that l, when using the Arrangement property for a container, the arranged controls do not reflect the real X, Y, W and H properties. How can I get them? Thanks in advance.I don't know why you wouldn't be getting the actual Width and Height of a control. It seems to be correct here with Qt5. Regarding .X and .Y, note that those properties are the X and Y coordinates of the control in relation to its parent. If you want the X & Y of the control in relation to the screen itself, use .ScreenX and .ScreenY.
Hi Lee, even if the platform is Wailand? I believe that screen.x etc. are read only. Good night (here :-)) Gianluigi
Re: Getting real size and position for arranged controls. | Carlos Prieto López <caprilo@xxxxxxxx> |
Getting real size and position for arranged controls. | Carlos Prieto <caprilo@xxxxxxxx> |
Re: Getting real size and position for arranged controls. | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |