public TabBar(MainTabWidget parent) : base(parent) { base.SetStyleSheet(Util.ReadResource("mainwindow-tabs.qss")); var layout = new QHBoxLayout(this); layout.sizeConstraint = QLayout.SizeConstraint.SetNoConstraint; layout.Spacing = 0; layout.Margin = 0; layout.AddStretch(1); layout.AddWidget(new QSizeGrip(this), 0, (uint)AlignmentFlag.AlignBottom); base.MinimumWidth = 0; }