How to completely remove the margin of a QHBoxLayout in Mac?
-
Hi,
Recently I found the Qt widgets have 2 pixels extra margin when it's in a QHBoxLayout. This happens on Mac, but not Windows. This troubles me a lot because I want the widgets aligned.
You can see the "example screen shot":http://www.imagehousing.com/image/819920. I add 4 QCheckBoxes in the group, and the second QCheckBox is surrounded by a QHBoxLayout, whose margin and spacing is set to 0, and then the 4 QCheckBoxes are not aligned.
So what else can I do?
Thanks,
DJBTW, how can I upload images in this forum?
-
A simple solution for your problem is to use the same layouts for widgets like that or use a QGridlayout for all your widgets.
bq. BTW, how can I upload images in this forum?
Yes you can. see the "forum help page":http://developer.qt.nokia.com/wiki/ForumHelp#9bd9c32b79efb1b2d5b039e4d48300a9.