I'm still not sure that I follow you. You want to make sure that your dialog boxes fit on the screen, but you're saying that you don't want it to be full screen (maximized)? Calling showMaximized() would put the dialog box in maximized mode, so that it would fit perfectly to the screen size.
If you don't want a full-screen dialog, how big do you want your dialog boxes to be? You could always resize the boxes after creation to a percentage of the screen width and height, using the resize function and qApp->desktop() to get the screen size.
You shouldn't have to make a direct call to resize(sizeHint()), as that should be done automatically.
I've found that GUI creation with Qt can be really tricky, and sometimes just downright frustrating. One problem that I've found, at least with Qt 2.x, is that the default sizeHints aren't always appropriate for use on a PDA-size screen. For example, the QMultiLineEdit widget has a default height of 6 lines, unless restricted using a fixed height or setting the maximum number of visible lines. However, if you set a fixed value for the height/number of lines, the app textbox may not grow properly for other resolutions. I ran into this problem in knQuiz, and ended up having to subclass the QMultiLineEdit widget to fix it.
- ashikase
anpachi, gifu, japan