Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Understanding of void QWidget::getContentsMargins ( int * left, int * top, int * right, int * bottom )
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 678 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Estefunny
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved