PDA

View Full Version : sizeHint



eric
8th January 2008, 16:08
Hello!
I'd like sizeHint to control the size of my main window. Basically I need my window to be 80% of the size of the computer screen. I know that screenGeometry gives me a QRect representing screen size. How do I feed this info into sizeHint function which takes QSize. What's the way to make these two functions interact so that my window is 80% of the screen size?

jpn
8th January 2008, 16:18
See QRect::size().