With the void setGeometry (int x, int and, int width, int height) you can define the position of the upper left corner and its width and height.
An example:
#include <QApplication>
#include <QWidget>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QWidget w1,w2,w3,w4;
w1.setGeometry(50,0,200,200);
w2.setGeometry(300,0,200,200);
w3.setGeometry(50,300,200,200);
w4.setGeometry(300,300,200,200);
w1.show();
w2.show();
w3.show();
w4.show();
return a.exec();
}
This shows you four windows with an initial position and dimensions. This feature can be found in the QDesigner, if you are designing the window there.