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