> maybe I am blind or something. But I can not find a way to layout just > one widget (promoted widget) in a default mainwindow in QtCreator in a > way that it spans over 100% of the available space and resizes > automatically on resizing the window. > > How can this be done? Is this possible with the QtDesigner, and without > adding own layout code to my mainwindow class?
It's possible, as the previous e-mails have mentioned, but code is actually the best solution here. QMainWindow is specifically designed for this behavior -- setCentralWidget(). If you're not using Designer to design anything else on the window, skip the extra step. A common misconception, too, is to think that QMainWindow is required to create a window; any widget can act as a top-level window. I don't know your specific goal or your level of experience, but I thought I'd mention this. /s/ Adam _______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
