void MainWindow::keyPressEvent(QKeyEvent *e)
{
switch (e->key()) {
case Qt::Key_Up:
_image->up();
break;
case Qt::Key_Down:
_image->down();
break;
case Qt::Key_Left:
_image->left();
break;
case Qt::Key_Right:
_image->right();
break;
}
}