Align buttons to the right

I want to add a button to the bottom right. 

What I've done is add a group box

Then inside it added another group box, (aligned to the right) as well as the buttons. 

This works, but unfortunately, even if you make the group box flat, it still draws a line along the top, so this setup looks like a hack. 

Comments

  • YudinEdYudinEd Posts: 90
    edited June 2018

    You can use for your button of group box YourButton

    YourButton.setGeometry (X coordinates, Y coordinates, width, height)

    or

    YourButton.x=  X coordinates

    YourButton.y = Y coordinates

     

    Post edited by YudinEd on
  • HowieFarkesHowieFarkes Posts: 607

    You don't always need to use a DzGroupBox as a container for other widgets when sometimes just a simple DzWidget will do the job (with the added bonus that a DzWidget will not be drawn with a border). You can still add layouts to DzWidget objects too.

  • BradCarstenBradCarsten Posts: 856

    Thanks YudinEd and HowieFarkes. That helps a lot. 

Sign In or Register to comment.