当前位置: 代码迷 >> QT开发 >> 请问addlayout,addchildlayout的区别
  详细解决方案

请问addlayout,addchildlayout的区别

热度:86   发布时间:2016-04-25 04:50:40.0
请教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.
……
  相关解决方案