PDA

View Full Version : Qt Designer About central widget in Qt Designer



lrjdragon
1st April 2010, 12:29
Hi,guys:
Have you ever met such a problem:when you create ui with Qt Designer,there are some containers such as QMainWindow and QScrollArea,which will always regard widget you drag into it as the descents of their central widget, which is not exactly what I expect. What I want to do is to set its central widget.Can you help me out?
Thanks in advance.

axeljaeger
3rd April 2010, 15:46
You cannot set the central widget directly in designer. Drag some widget onto the central widget of the main window and use a vertical or horizontal box layout. (Doesnt matter which one of both)

lrjdragon
3rd April 2010, 16:11
You cannot set the central widget directly in designer. Drag some widget onto the central widget of the main window and use a vertical or horizontal box layout. (Doesnt matter which one of both)

Thanks,you just saved me from the hell~