显示楼层名

This commit is contained in:
wmj committed 2017-12-20 14:07:30 +08:00
1 parent 6a465355b0
commit 54ac81c2ce
4 files changed
+4 -1

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ Monitor::Monitor(QWidget *parent) :
QObject::connect(pk, &ParkingLotItem::enableDownButton, ui->downStairButton, &QPushButton::setEnabled);
QObject::connect(pk, &ParkingLotItem::setCapacity, ui->capacity, &QLabel::setText);
QObject::connect(pk, &ParkingLotItem::setLoad, ui->load, &QLabel::setText);
QObject::connect(pk, &ParkingLotItem::setLayerName, ui->layerName, &QLabel::setText);
pk->showParkingLot();
QGraphicsScene *scene = new QGraphicsScene(this); // 创建场景