setSizePolicy(QSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum));
setSizeConstraint(QLayout::SetFixedSize)