Hi
I want to add border to QGridLayout.
How to do that.
Thanks.
Hi
I want to add border to QGridLayout.
How to do that.
Thanks.
A QGridLayout is not a visible object, it cannot have borders of its own. You can put a set of widgets laid out by QGridLayout inside a QFrame to get a visible border.
And in case you meant just some spacing between the layout's content and the layout's parent, see QLayout::setMargin() and QLayout::setContentsMargins()
Cheers,
_
Bookmarks