Qt4 设置位置 setGeometry

// set position 
myDialog->setGeometry(...);
// and show my dialog
myDialog->show();
 
 
You can't use setGeometry() when using layouts -- it'll simply not work. If you want to manipulate sizes of laid out widgets, you have to use sizeHint, sizePolicies and minimumSize and maximumSize properties.

你可能感兴趣的:(qt)