Fraxinus  18.10
An IGT application
main.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #include <QApplication>
12 
13 #include "cxApplication.h"
14 #include "cxLogConsole.h"
15 
16 int main(int argc, char *argv[])
17 {
18 
19 #if !defined(WIN32)
20  //for some reason this does not work with dynamic linking on windows
21  //instead we solve the problem by adding a handmade header for the cxResources.qrc file
22  Q_INIT_RESOURCE(cxResources);
23 #endif
24 
25  cx::Application app(argc, argv);
26  app.setOrganizationName("CustusX");
27  app.setOrganizationDomain("www.custusx.org");
28  app.setApplicationName("LogConsole");
29  app.setWindowIcon(QIcon(":/icons/CustusX/CustusX.png"));
30  app.setAttribute(Qt::AA_DontShowIconsInMenus, false);
31 
32  cx::LogConsole console;
33  cx::bringWindowToFront(&console);
34 
35  return app.exec();
36 }
void bringWindowToFront(QWidget *window)
int main(int argc, char *argv[])
Definition: main.cpp:16