1 if (sp1->boundingBox().intersectsRect(sp2->boundingBox())) { 2 pLabel->setString(“碰撞飞机爆炸”); 3 }else 4 pLabel->setString(“~还没有碰撞·~”); 5 6 }
时间: 2024-10-11 19:14:43
1 if (sp1->boundingBox().intersectsRect(sp2->boundingBox())) { 2 pLabel->setString(“碰撞飞机爆炸”); 3 }else 4 pLabel->setString(“~还没有碰撞·~”); 5 6 }