change spacer by qwidget fake spacer
This commit is contained in:
@@ -48,6 +48,8 @@ class MainWindow(QMainWindow):
|
||||
# Adjust UI
|
||||
self.maintitle_label.setFont(QFont(font_family, 38))
|
||||
self.subtitle_label.setStyleSheet("color: rgb(163, 177, 198)")
|
||||
self.staff_btn.hide()
|
||||
self.spacer_substitution.hide()
|
||||
|
||||
# Find the button by its objectName in Qt Designer
|
||||
# Example: objectName = "close_btn"
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>42</width>
|
||||
<width>25</width>
|
||||
<height>25</height>
|
||||
</size>
|
||||
</property>
|
||||
@@ -446,17 +446,14 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<widget class="QWidget" name="spacer_substitution" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
<width>53</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="staff_btn">
|
||||
|
||||
@@ -26,6 +26,6 @@ QPushButton#minimize_btn {
|
||||
border-bottom: 5px solid white;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
padding: 10px;
|
||||
padding: 0px;
|
||||
padding-top: 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user