Skip to content

Commit 05395d8

Browse files
committed
Add GUI
1 parent 8e66200 commit 05395d8

62 files changed

Lines changed: 3785 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ compile_commands.json
5252
*creator.user*
5353

5454
*_qmlcache.qrc
55+
56+
build/**

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
# qCommTest
2+
3+
[![License](https://img.shields.io/github/license/diffstorm/ViterbiTrellis)](https://github.com/diffstorm/ViterbiTrellis/blob/main/LICENSE)
4+
[![Language](https://img.shields.io/github/languages/top/diffstorm/ViterbiTrellis)](https://github.com/diffstorm/ViterbiTrellis)
5+
26
Serial Communication Test Tool
7+
- Serial COM Port / RS232
8+
- TCP
9+
10+
## Usage
11+
![Usage](usage.gif)
12+
13+
## :snowman: Author
14+
Eray Öztürk ([@diffstorm](https://github.com/diffstorm))
15+
16+
## LICENSE
17+
This project is licensed under the [GPL-3 License](LICENSE) - see the LICENSE file for details.

main.cpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
qCommTest - Serial Communication Test Tool
3+
Version : 1.0
4+
Date : 20.11.2017
5+
Author : Eray Ozturk | github.com/diffstorm
6+
*/
7+
#include "mainwindow.h"
8+
#include <QApplication>
9+
#include <QFile>
10+
11+
void setStylesheet()
12+
{
13+
QFile f(":qdarkstyle/style.qss");
14+
15+
if(!f.exists())
16+
{
17+
printf("Unable to set stylesheet, file not found\n");
18+
}
19+
else
20+
{
21+
f.open(QFile::ReadOnly | QFile::Text);
22+
QTextStream ts(&f);
23+
qApp->setStyleSheet(ts.readAll());
24+
}
25+
}
26+
27+
int main(int argc, char *argv[])
28+
{
29+
QApplication a(argc, argv);
30+
MainWindow m;
31+
setStylesheet();
32+
m.show();
33+
return a.exec();
34+
}

0 commit comments

Comments
 (0)