Using Qt 4.7.4 with C++:

Is there any way to get the width of the frame for a normal window, PRIOR to showing any windows? After showing a window, I know I can subtract the size() from the frameSize(), but that doesn't work until after the window is shown.

I've looked at QApplication::style()->pixelMetric(), and I can get the height of the title bar using
QApplication::style()->pixelMetric(QStyle::PM_TitleBarHeight)

but I don't see any options to get the width of the rest of the border around the window.

The only solution I've found so far is to:
•set the window opacity to 0 (so the user doesn't see it),
•show the window
•then subtract size() from frameSize()

Is there a better way?