-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (21 loc) · 758 Bytes
/
main.cpp
File metadata and controls
29 lines (21 loc) · 758 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
#include "mainwindow.h"
#include <QApplication>
#include "DarkStyle.h"
#include "framelesswindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setStyle(new DarkStyle);
// MainWindow w;
// w.show();
FramelessWindow framelessWindow;
framelessWindow.setWindowState(Qt::WindowFullScreen);
framelessWindow.setWindowTitle("AImageLab Bridge by Prof. Vezzani");
framelessWindow.setWindowIcon(a.style()->standardIcon(QStyle::SP_DesktopIcon));
// create our mainwindow instance
MainWindow *mainWindow = new MainWindow;
// add the mainwindow to our custom frameless window
framelessWindow.setContent(mainWindow);
framelessWindow.show();
return a.exec();
}