Understanding of void QWidget::getContentsMargins ( int * left, int * top, int * right, int * bottom )



  • 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?


  • Moderators

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.