当前位置:网站首页>QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse
QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse
2022-06-23 06:58:00 【Shu Yang】
Problem description :
performance 1: Here's the picture , stay QT Designer interface , stay geometry Properties , After a certain point, the width and height are the original values , Cannot modify window size .
performance 2: Drag the window with the mouse , I can't drag it , Still can't change the window size .
resolvent :
1、 Right click ui file ——> choice “ use … open ”——> choice “ Normal text editor ”

2、 Take yours. ui File on the window size of this code , Amend to read as follows , Save it , Right click again ui file ——> choice “ use … open ”——> choice “ Interface editor ” Open your ui file , You can get back to normal .
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1024</width>
<height>1024</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>5000</width>
<height>3000</height>
</size>
</property>
The normal code for resizing windows is as follows , Yes, there is 4 Part of the , The data of these four parts can be modified according to your own needs .

I can not change the size of the window corresponding to ui The content of the file is as follows , You can see that a part of the code is missing .

边栏推荐
猜你喜欢
随机推荐
MySQL redo log redo log
Badly placed()'s problem
图解三次握手四次挥手,小白都能看懂
Anti chicken soup speech
js数组的索引为何不能用负数
Children's programming for comprehensively cultivating students' mental thinking
【项目实训】多段线扩充为平行线
swagger3整合oauth2 认证token
Cetos7 record
Explain csma/cd, token bus and token ring clearly
cetos7 记录
Get to know webassembly quickly
mars3d点线面的绘制和重置
cmder
页面嵌入iframe 点击浏览器后退问题
【shell】Tree命令
直播带货这么火,如何在小程序中实现视频通话及直播互动功能?
Topic35——34. Find the first and last positions of elements in a sorted array
【毕业季·进击的技术er】自己的选择,跪着也要走
asp.net文件下载demo与相关问题的处理








