Skip to content

Commit

Permalink
Hide console window in windows
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <[email protected]>
  • Loading branch information
Harry-Chen committed May 3, 2017
1 parent aad5ed4 commit ab83866
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#include <QApplication>
#include <QApplication>
#include <QDebug>
#include <QDesktopWidget>
#include <ctime>
#include <cstdlib>

#include "danmaQ_app.h"


#if defined _WIN32 || defined __CYGWIN__
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
#endif
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
std::srand(std::time(0));
QApplication app(argc, argv);
std::srand(std::time(0));

QDesktopWidget* desktop = QApplication::desktop();
DMApp* dm_app = new DMApp();
Expand Down

0 comments on commit ab83866

Please sign in to comment.