Anchor or alignment for controls
ruekaka
Posts: 346
Hello,
is it possible to assign anchors and/or alignment to controls of a form (so they resize automatically when the form size is changed)?
If not is there an event of the form that is fired when the form is resized?
Thanks in advance for any hint.
With kind regards
Ruediger Kabbasch
Comments
See DzLayout (http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/layout_dz) and its derivatives. DzBasicDialog (http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/basicdialog_dz) provides a vertical layout as standard.
Thanks for you reply, I appreciate it.
I already knew these links, but I can't achieve what I'm after. I either do not get the concept of the "layout" (most propably) or it doesn't work like I need it.
The attached screenshot shows that the alignment works, but the prompts changes the size only in one direction (the height in this example), but I want to change the width, too (not either or).
Is this possible?
Additional to creating the form by code I tried to use the Qt-Designer, but it seems that the Layouts that I used on the form are ignored. They do not resize with the form at all. Any hint how I can change this?