Designer Horizontal Layout behavior
-
I thought I'd try to reproduce the Calculator example using Designer. I added the top row of buttons to a Horizontal Layout sized the same width as the display widget. While adding buttons to a second Horizontal Layout, for 789, the top-row layout mysteriously expands beyond the edges of the Ui widget, I think it resizes the small square buttons to their original size, with 6 pixels between them. How can I prevent that from happening? Why doesn't it respect the right edge of the widget? I have to resize the base widget in order to grab the resized right edge of the Layout and size it back under the display widget. The example creates the Ui in code, I ought to be able to do the same with Designer. Maybe I need to put the widget into a Border Layout. Would that constrain the size of the Horizontal Layouts holding the buttons?
-
I thought I'd try to reproduce the Calculator example using Designer. I added the top row of buttons to a Horizontal Layout sized the same width as the display widget. While adding buttons to a second Horizontal Layout, for 789, the top-row layout mysteriously expands beyond the edges of the Ui widget, I think it resizes the small square buttons to their original size, with 6 pixels between them. How can I prevent that from happening? Why doesn't it respect the right edge of the widget? I have to resize the base widget in order to grab the resized right edge of the Layout and size it back under the display widget. The example creates the Ui in code, I ought to be able to do the same with Designer. Maybe I need to put the widget into a Border Layout. Would that constrain the size of the Horizontal Layouts holding the buttons?
-
@JonB said in Designer Horizontal Layout behavior:
@Psnarf
"A picture paints a thousand words" :)I figured out how to upload an image. Thanks for suggesting this, I didn't know I could do that! 
-
@JonB said in Designer Horizontal Layout behavior:
@Psnarf
"A picture paints a thousand words" :)I figured out how to upload an image. Thanks for suggesting this, I didn't know I could do that! 
-
@JonB said in Designer Horizontal Layout behavior:
@Psnarf
Is that link a safe one to be posting on a forum?Yes. Firefox goes nuts with alarms, probably because someone uploaded something to set off the alarms. The site itself is benign. That link is a screenshot of the calculator with a horizontal layout that changed the button sizes back to default, pushing buttons off the right edge. It's just a jpeg image.
-
@JonB said in Designer Horizontal Layout behavior:
@Psnarf
Is that link a safe one to be posting on a forum?Yes. Firefox goes nuts with alarms, probably because someone uploaded something to set off the alarms. The site itself is benign. That link is a screenshot of the calculator with a horizontal layout that changed the button sizes back to default, pushing buttons off the right edge. It's just a jpeg image.
-
@Psnarf
Well I use Chrome, not FF, and would not visit or post a link that, I closed the window as rapidly as possible....@JonB
I would never post a dangerous link. Apparently, some miscreants used anonymousfiles.io to exchange executable binary code, including the naughty bits. Morons weren't smart enough to encrypt such stuff. The naughty bits are gone. Don't download anything. When I open the site the jpg image is displayed along with menu items such as 'download'. I posted it to satisfy your curiosity. If you have a favorite anonymous file upload site, pray! tell me and I'll upload the benign image there. -
@JonB
I would never post a dangerous link. Apparently, some miscreants used anonymousfiles.io to exchange executable binary code, including the naughty bits. Morons weren't smart enough to encrypt such stuff. The naughty bits are gone. Don't download anything. When I open the site the jpg image is displayed along with menu items such as 'download'. I posted it to satisfy your curiosity. If you have a favorite anonymous file upload site, pray! tell me and I'll upload the benign image there.