#include "wnd2.h"#include "wnd3.h"class CWnd1:public QMainWindow{ public: CWnd1(void); private: CWnd2 *wnd2; CWnd3 *wnd3; void func1(void);};CWnd1::CWnd1(void){ wnd2=new CWnd2(); wnd3=new CWnd3(); wnd2->show(); wnd3->show();};void CWnd1::func1(void){ wnd2->pos(1,5); wnd2->repaint(); Sleep(100); wnd2->pos(6,2); wnd2->repaint(); Sleep(100); wnd2->pos(7,1); wnd->repaint(); ...};