void GrView::onMoveLeft(){ line=vline->line(); if(line.x1()>0) { vline->setLine(line.x1()-10,line.y1(),line.x2()-10,line.y2()); }}
void GrView::MoveTo0(){ int i,cur_x,cur_y; cur_x=(int)(vline->line().x1()); cur_y=(int)(hline->line().y1()); for(i=cur_x;i>0;i--){onMoveLeft();Helper::msleep(5);} for(i=cur_y;i>0;i--){onMoveUp();Helper::msleep(5);}}
class Helper: public QThread {public: static void msleep(int ms) { QThread::msleep(ms); }};