title: Qt: Set size of QMainWindow
body: <p>I'm new to Qt, so I wonder whether there is a way to set the size of a <code>QMainWindow</code> to (for example) 70% of the user's desktop.<br>I tried the stretch factor but it didn't work. <code>QWidget::setFixedSize</code> worked but only with a pixel number, I think.</p>