简体   繁体   中英

Remove Qt widget layout's margins

I want to remove the spacing marked as red lines in the screenshot. I set layout's contents margins to (0,0,0,0), re-sized parent widget to minimum but still can not get rid of those spaces. This only happens on Mac. Looking for some help. Thanks in advance! 屏幕截图

Q按钮

As nnb told, welcome to the weird size policies on mac. But you can wrap layout to widget and crop margins.

在此处输入图片说明

在此处输入图片说明

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