m_pvlayout->setMargin的作用意义是什么呢?解决思路

m_pvlayout-setMargin的作用意义是什么呢?C/C++ codeQVBoxLayout *m_pvlayoutm_pvlayout-setSpacing (0

m_pvlayout->setMargin的作用意义是什么呢?

C/C++ code
QVBoxLayout *m_pvlayout;m_pvlayout->setSpacing (0); //间距m_pvlayout->setMargin (1);m_pvlayout->setContentsMargins (0, 0, 0, 0); //边际


[解决办法]
设置里面的内容距离边界的距离……你设置10然后设置1 看看效果就知道了。前提是你的布局里面有控件。