不知你所指的状态是指什么,布局内部件的排列位置?还是布局内部件是否可以点击?
void QLayout::setEnabled ( bool enable )
Enables this layout if enable is true, otherwise disables it.
An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.
By default all layouts are enabled.