简体   繁体   中英

Qt: Fixed size policy?

I have a mdi area that contains 3 sub-windows.I fixed maximum and minimum size of its.Then select Fixed size policy.But, I can increase or decrease size of subwindows.

固定大小政策

How can I fix that?

From what I've seen in designer you can't really select the subwindow, only the subwindow's content widget, so that's probably what your picture shows. So you only can change the subwindow's properties directly from your code, not in designer.

Example:

for subwin in mdiArea.subWindowList():
    subwin.setMinimumSize(289, 366)
    subwin.setMaximumSize(289, 366)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM