/*对于父窗口,坐标系统相对于屏幕
* 子窗口相对于父窗口
* 原点:屏幕坐上角,窗口空白区域,不包括边框
* x 往右递增
* y 往下递增
*/
move(100,100);
QPushButton *b1= new QPushButton(this);
b1->move(100,100);
b1->setText("123");
b1->resize(100,100);
QPushButton *b2= new QPushButton(b1);
b2->move(10,10);
b2->setText("QAQ");
//1)指定父对象后 2)直接或间接继承与QObject
//子对象如果是动态分配空间的,不需要手动释放
//系统会自动释放