Question: Although [Qt's docs](http://qt-project.org/doc/qt-4.8/application-windows.html#window-geometry) indicate that these two functions are different (the first doesn't include the frame) no matter what widget I choose - including the main window of my application - `someWidget->frameGeometry().height()` always returns the same value as `someWidget->geometry.height()`.

What am I missing here?

Answer: 
this is an old post, but that could help those searching for the same problem.

Just call 

```
adjustSize(); 

```

before prompting for some geometry attributes
As user *fasked* notes, `frameGeometry()` may not include the frame margins early in the window creation lifecycle. I have found that the following code works in some situations where calling `frameGeometry()` does not.

```
QMargins frameMargins;
QWindow *window = widget->windowHandle();
if (window) {
    window->create();
    frameMargins = window->frameMargins();
}

QRect myFrameGeometry = widget->geometry().adjusted( 
        -frameMargins.left(), -frameMargins.top(),
        frameMargins.right(), frameMargins.bottom());

```