Fixing visibiliy and enabled for QLayouts