[SOLVED] setContentsMargins() not working?
-
I am working on an application built this way:
@
QApplication
|_ QMainwindow
|_ QScrollArea (central widget)
|_ QFrame (child of scroll area)
|_ QFrame
| |_ QLabel
| |_ QPixmap
|_ QFrame
| |_ QLabel
| |_ QPixmap
|_ QFrame
|_ ect...
@
I want there to be no margins between the sub-QFrames and their QLabels and equally between QLabels and their QPixmap. The latter seems to occur naturally, but no amount of effort seems to help me reduce the margin of the QFrames with their child QLabel. I have been able to test that by applying a Style Sheet to the components. I have requested to reduce the sub-QFrame's margins with QFrame.setContentsMargins(0, 0, 0, 0) and with its layout's QBoxLayout.setSpacing(0). In spite of all this, margins persist i showing up.What can I do?
Thanks.
-
@
QLayout::setContentsMargins()
@ -
It works thanks :)