[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: Carlos Prieto López <caprilo@xxxxxxxx>
- Date: Sat, 25 Jan 2025 17:27:11 -0600
- To: user@xxxxxxxxxxxxxxxxxxxxxx
I was making a mistake: before the form is opened, the coordinates are zero, but after the arrangement, they can be read without problem. Thanks! El 25 de enero de 2025 3:33:18 p.m. CST, Gianluigi <gradobag@xxxxxxxxxxx> escribió: >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. | Gianluigi <gradobag@xxxxxxxxxxx> |
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> |
Re: Getting real size and position for arranged controls. | Gianluigi <gradobag@xxxxxxxxxxx> |