CustusX
20.03-rc1
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
}
cx::Application
Definition:
cxApplication.h:32
cx::bringWindowToFront
void bringWindowToFront(QWidget *window)
Definition:
cxApplication.cpp:99
main
int main(int argc, char *argv[])
Definition:
main.cpp:16
cx::LogConsole
Definition:
cxLogConsole.h:22
cxApplication.h
cxLogConsole.h
CX
source
apps
LogConsole
main.cpp
Generated on Fri Mar 6 2020 10:08:54 for CustusX by
1.8.11