1. 在下拉框控件Combo块里面添加
2. 在下拉框选项option添加
<Combo name="mat.combo" label="温度场" width="160" link="type.stack" >
<option text="弹性" value="0" link="elastic_T.panel"/>
<option text="密度" value="1" link="density_T.panel"/>
</Combo>
3. 在Stack或Tab控件里添加
<Stack name="type.stack" link="mat.combo" link_signal="currentIndexChanged" link_slot="setCurrentWidget">
<Child name="elastic_T.panel" title="弹性场" >
</Child >
<Child name="density_T.panel" title="密度场" >
</Child>
</Stack>
注意,下拉框选项的link属性必须与Stack或Tab控件子控件名(Child控件的name属性)一一对应。