-
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) · 738 Bytes
/
main.cpp
File metadata and controls
29 lines (21 loc) · 738 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
// Copyright (C) 2025 Mohit Deoli
// SPDX-License-Identifier: GPL-3.0-only
#include "mainwindow.h"
#include <QApplication>
// #include "./lib/utils/3rd-party/Qt-FramelessWindow/include/FramelessWindow.hpp"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFile styleFile(":/lib/resources/styles/main.qss");
MainWindow w;
w.show();
if (styleFile.open(QFile::ReadOnly)) {
QString style = QLatin1String(styleFile.readAll());
a.setStyleSheet(style);
styleFile.close();
}
// FramelessWindow<MainWindow> *frameLessWindow = new FramelessWindow<MainWindow>(true);
// frameLessWindow->setContentsMargins(1,1,1,1);
// frameLessWindow->show();
return a.exec();
}