关联列表框子项与Tab、Stack子控件

1. 在列表框控件List块里面添加

2. 在列表框控件子项Item添加

    		<List name="option.list" width="100" link="panel.stack">
    			<Item link="path.panel" text="Path" />
    			<Item link="color.panel" text="Color" />
    			<Item link="file.panel" text="File" />
    		</List>

3. 在Stack或Tab控件里添加

    		<Stack name="panel.stack" link="option.list" link_signal="currentItemChanged" link_slot="setCurrentWidget">
    			<Panel name="path.panel" title="Path Setting">
                        ......
    			</Panel>
    			<Panel name="color.panel" title="Color Setting" collapse="true">
                        ......
    			</Panel>
    			<Panel name="file.panel" title="File Setting">
                        ......
    			</Panel>
    		</Stack>

注意,列表框控件子项的link属性必须与Stack或Tab控件子控件名(在这里是Panel控件的name属性)一一对应。