Suppose i have some widget in qt designer,i need to stable their size , it means i want to disable resizable feature. how i do it?

有帮助吗?

解决方案

if set to maximum, it will at least allow to make the dialog smaller.

enter image description here

would be one way, the other is inside your code using:

setWindowFlags(windowFlags() | Qt::MSWindowsFixedSizeDialogHint);

soo long zai

其他提示

in qt designer, right click on your dialog, select size constraints > set maximum size and set minimum size

enter image description here

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top