Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Understanding of void QWidget::getContentsMargins ( int * left, int * top, int * right, int * bottom )
Estefunny last edited by
I just can't understand this:
QWidgets method @QWidget::getContentsMargins ( int * left, int * top, int * right, int * bottom )@
returns nothing, but the documentation says: Returns the widget's contents margins for left, top, right, and bottom.
So what does it actually returns or why is it called "get"ContentMargin?
The values of left, top, right and bottom that you pass to this function are modified (notice all integers being passed as pointers, not values). You can then read them and they will contain the margins.