简体   繁体   中英

When Click an Image QFrame Size Changes

Everything is OK in the first picture . 在此处输入图片说明

There are qlabels that display images . When I click one of them, a size problem occured the top of the second picture .I don't understand what is the problem ? 在此处输入图片说明

If you do not want your QLabel to resize try to set a fixed size.

For the height you can use: setFixedHeight(int n)

I also advise you to read Qt Layout Management if you haven't already.

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