How to resize the widgets inside QDialog window when user resize QDialog manually.
-
I need one help I have one line edit and PushButton in QDialog Window.
When I try to resize window manually I want that Line Edit show also grow horizontally but currently it is not increasing is size when I am trying to increase the size of QDialog Window.
The sizePolicy (Horizontal Policy) is already set to Preffered.
-
@Ayush-Gupta said in How to resize the widgets inside QDialog window when user resize QDialog manually.:
No i did not applied to layout to the dialog
Then please do...
-
@Bonnie I am using layout but still it does not works.
-
@Ayush-Gupta Then explain/show how you're using layouts. Did you apply layout to the dialog itself?
-
@jsulm I am using horizontal layout. No i did not applied to layout to the dialog..
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="KmrcButtonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout> -
@Ayush-Gupta said in How to resize the widgets inside QDialog window when user resize QDialog manually.:
No i did not applied to layout to the dialog
Then please do...