读书人

请问addlayout,addchildlayout的区别

发布时间: 2012-05-05 17:21:10 作者: rapoo

请教addlayout,addchildlayout的区别
不好意思啊,谁能告诉我addlayou, addchildlayout的区别么?谢谢。

[解决办法]
看Manual,它的信息量应该足够了:

void QLayout::addChildLayout ( QLayout * l ) [protected]

This function is called from addLayout() or insertLayout() functions in subclasses to add layout l as a sub-layout.

The only scenario in which you need to call it directly is if you implement a custom layout that supports nested layouts.
[解决办法]

探讨
看Manual,它的信息量应该足够了:

void QLayout::addChildLayout ( QLayout * l ) [protected]

This function is called from addLayout() or insertLayout() functions in subclasses to add layout l as a sub-layout.
……

读书人网 >QT开发

热点推荐