Sorry but that didn't help me..
I designed the form in QtDesigner and there is no possibility to set the name of the layout (so to later retrieve it) or to set the margin or spacing property to -1
this is part of the ui-file
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
.. (widgets)
</item>
</layout>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
.. (widgets)
</item>
</layout>
To copy to clipboard, switch view to plain text mode
Should I hack the ui generated file? I guess not. But then what? I do not know the name of the layout so I can't just use code in the constructor like layoutName.setMargin(-1) or something like that.
Any further help?
Bookmarks