-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
39 lines (29 loc) · 915 Bytes
/
Copy pathmain.cpp
File metadata and controls
39 lines (29 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "mainwindow.h"
#include <QApplication>
#include "bcell.h"
#include "bcellmodel.h"
#include "bcelltablemodel.h"
#include "bworker.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// MainWindow w;
qRegisterMetaType<int16_t>("int16_t");
QThread thread;
MainWindow w(&thread);
// QList<BCell> cells;
// for (int row = 0; row < 144; ++row) {
// BCell cell(row, 100 + row, 50 + row);
// cells.append(cell);
// }
// BCellModel* model = new BCellModel(cells);
// QThread t;
// BWorker worker;
// QObject::connect(&worker, SIGNAL(updateVoltage(int16_t,int16_t)), model, SLOT(onVoltageChanged(int16_t,int16_t)));
// QObject::connect(&worker, SIGNAL(updateTemp(int16_t,int16_t)), model, SLOT(onTempChanged(int16_t,int16_t)));
// worker.moveToThread(&t);
// t.start();
// thread.start();
w.show();
return a.exec();
}