-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
31 lines (26 loc) · 667 Bytes
/
Copy pathmain.cpp
File metadata and controls
31 lines (26 loc) · 667 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
//
// Created by shved on 27.07.2020.
//
#include <QApplication>
#include "Camera.h"
Q_DECLARE_METATYPE(Frame::Refer)
void quiet(QtMsgType type, const QMessageLogContext &context, const QString &message) {
switch (type) {
case QtDebugMsg:
qt_message_output(type, context, message);
break;
case QtWarningMsg:
case QtCriticalMsg:
case QtFatalMsg:
case QtInfoMsg:
break;
}
}
int main(int argc, char *argv[]) {
qInstallMessageHandler(quiet);
qRegisterMetaType<Frame::Refer>();
QApplication app(argc, argv);
Camera camera;
camera.show();
return app.exec();
}