登陆界面和车牌检测
This commit is contained in:
1 parent
77f1186af8
commit
9ec3bb2b4b
11 files changed
+332
-17
No files matched your search
+4
-4
@@ -6,6 +6,7 @@
|
||||
#include "parkingLotManager.h"
|
||||
#include "carlist.h"
|
||||
#include "logwindow.h"
|
||||
#include "utils.h"
|
||||
|
||||
Monitor::Monitor(MainWindow *parent) :
|
||||
QWidget(parent),
|
||||
@@ -13,10 +14,6 @@ Monitor::Monitor(MainWindow *parent) :
|
||||
{
|
||||
|
||||
l->append(FakeCar());
|
||||
// l->append(FakeCar());
|
||||
// l->append(FakeCar());
|
||||
// l->append(FakeCar());
|
||||
// l->append(FakeCar());
|
||||
|
||||
adapter = new Adapter(this, l);
|
||||
|
||||
@@ -38,6 +35,9 @@ Monitor::Monitor(MainWindow *parent) :
|
||||
pk->drawPath(ui->placeNum1->text().toInt(), ui->placeNum2->text().toInt());
|
||||
});
|
||||
|
||||
QObject::connect(ui->addCar, &QPushButton::clicked, [this]() {
|
||||
Log::i(checkPlate(this->ui->plateNumBox->text())==true?"true":"false");
|
||||
});
|
||||
QObject::connect(ui->random, &QPushButton::clicked, this, &Monitor::addCar);
|
||||
|
||||
pk->showParkingLot();
|
||||
|
||||
Reference in new issue
Block a user