Labels

14/08/2009

Reset Window origin coordination

设置窗口原点坐标



by default, window / frame's origin coordination is (0,0). it can't be changed in the property window, but can be set up in code.



after create a new window, add following code after "m_ui->setupUi(this)"



QPoint pos; // relocate window

pos.setX(240); // x

pos.setY(100); // y

move(pos);





No comments:

Post a Comment