From f6feb29b2989ef2d8226525adcef645e9ce2ab04 Mon Sep 17 00:00:00 2001 From: TurnMeOn Date: Mon, 25 Dec 2017 13:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=97=8B=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- car.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/car.cpp b/car.cpp index 931a0e6..dd35a46 100644 --- a/car.cpp +++ b/car.cpp @@ -32,7 +32,7 @@ Car::Car(ParkingLotManager * manager, QGraphicsItem *parent, int dir, Car::Color } m_pic = m_pic.scaled(M_WID, M_LEN); this->setPixmap(m_pic); - setTransformOriginPoint(0, M_LEN/2); //设置旋转中心 + setTransformOriginPoint(M_WID, M_LEN/2); //设置旋转中心 connect(posAni,QPropertyAnimation::finished,this,followPath); connect(this, &Car::queueHead, manager, &ParkingLotManager::requestIn); connect(this, &Car::exit, manager, &ParkingLotManager::leave);