Skip to content

Commit ac31d08

Browse files
committed
fixed height
1 parent 0cdc1c7 commit ac31d08

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

Dialog.ui

+19-4
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,31 @@
77
<x>0</x>
88
<y>0</y>
99
<width>457</width>
10-
<height>252</height>
10+
<height>180</height>
1111
</rect>
1212
</property>
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
15+
<horstretch>0</horstretch>
16+
<verstretch>0</verstretch>
17+
</sizepolicy>
18+
</property>
19+
<property name="minimumSize">
20+
<size>
21+
<width>0</width>
22+
<height>180</height>
23+
</size>
24+
</property>
25+
<property name="maximumSize">
26+
<size>
27+
<width>16777215</width>
28+
<height>180</height>
29+
</size>
30+
</property>
1331
<property name="windowTitle">
1432
<string>Dialog</string>
1533
</property>
1634
<layout class="QVBoxLayout" name="verticalLayout">
17-
<property name="sizeConstraint">
18-
<enum>QLayout::SetFixedSize</enum>
19-
</property>
2035
<item>
2136
<layout class="QHBoxLayout" name="horizontalLayout_3" stretch="0,1">
2237
<item>

mainwindow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MainWindow::MainWindow(QWidget *parent) :
66
ui(new Ui::MainWindow)
77
{
88
ui->setupUi(this);
9-
layout()->setSizeConstraint(QLayout::SetFixedSize);
9+
//layout()->setSizeConstraint(QLayout::SetFixedSize);
1010
}
1111

1212
MainWindow::~MainWindow()

mainwindow.ui

+19-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,27 @@
77
<x>0</x>
88
<y>0</y>
99
<width>315</width>
10-
<height>169</height>
10+
<height>180</height>
1111
</rect>
1212
</property>
13+
<property name="sizePolicy">
14+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
15+
<horstretch>0</horstretch>
16+
<verstretch>0</verstretch>
17+
</sizepolicy>
18+
</property>
19+
<property name="minimumSize">
20+
<size>
21+
<width>0</width>
22+
<height>180</height>
23+
</size>
24+
</property>
25+
<property name="maximumSize">
26+
<size>
27+
<width>16777215</width>
28+
<height>180</height>
29+
</size>
30+
</property>
1331
<property name="windowTitle">
1432
<string>Démonstration problème de taille</string>
1533
</property>

0 commit comments

Comments
 (0)