Skip to content

Commit 530a41d

Browse files
committed
Make the main QDialog non-resizable
Since the content does not resize according to the size of the QDialog
1 parent f1070a2 commit 530a41d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dist_cartogram.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def __init__(self, iface):
106106
# Create the dialog (after translation) and keep reference
107107
self.dlg = DistCartogramDialog()
108108

109+
self.dlg.setMinimumSize(self.dlg.width(), self.dlg.height())
110+
self.dlg.setMaximumSize(self.dlg.width(), self.dlg.height())
111+
109112
self.dlg.msg_bar = QgsMessageBar()
110113
self.dlg.msg_bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
111114
self.dlg.bottomVerticalLayout.addWidget(self.dlg.msg_bar)

0 commit comments

Comments
 (0)