Skip to content

Commit 4b81d4f

Browse files
committed
See: #84 Fixed frame style - attempt Windows resize issue fix
1 parent b0f5e8c commit 4b81d4f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

home-choice-pro/resources/main_window.ui

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,23 @@
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
14-
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
14+
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
1515
<horstretch>0</horstretch>
1616
<verstretch>0</verstretch>
1717
</sizepolicy>
1818
</property>
19+
<property name="minimumSize">
20+
<size>
21+
<width>750</width>
22+
<height>610</height>
23+
</size>
24+
</property>
25+
<property name="maximumSize">
26+
<size>
27+
<width>750</width>
28+
<height>610</height>
29+
</size>
30+
</property>
1931
<property name="windowTitle">
2032
<string>MainWindow</string>
2133
</property>

home-choice-pro/views/main_window_ui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ class Ui_MainWindow(object):
1515
def setupUi(self, MainWindow):
1616
MainWindow.setObjectName("MainWindow")
1717
MainWindow.resize(750, 610)
18-
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
18+
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
1919
sizePolicy.setHorizontalStretch(0)
2020
sizePolicy.setVerticalStretch(0)
2121
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
2222
MainWindow.setSizePolicy(sizePolicy)
23+
MainWindow.setMinimumSize(QtCore.QSize(750, 610))
24+
MainWindow.setMaximumSize(QtCore.QSize(750, 610))
2325
MainWindow.setStyleSheet("")
2426
self.centralwidget = QtWidgets.QWidget(MainWindow)
2527
self.centralwidget.setStyleSheet("QWidget {\n"

0 commit comments

Comments
 (0)