How to remove window's edge
Solved
General and Desktop
-
HI please tell me how to get ride of these edge on my QGraphicsView or any fram like widgets shown in this image.
thank you so much.
-
Remove layout margins (they default to 9 pixels).
-
@sierdzio said in How to remove window's edge:
layout margins
thanks so much
pLayout = new QVBoxLayout(this);
pLayout->setSpacing(0);
pLayout->setMargin(0);
// This is redundant with setMargin,
// which is deprecated
pLayout->setContentsMargins(0,0,0,0);pLayout->addWidget(m_pLabel, 0, Qt::AlignTop);
pLayout->addWidget(m_pButton, 0, Qt::AlignTop);setLayout(pLayout);