Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
MitkQuickRender.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include <QGuiApplication>
18 #include <QQmlApplicationEngine>
19 #include <QVariant>
20 #include <mitkBaseApplication.h>
21 
22 int main(int argc, char **argv)
23 {
24  mitk::BaseApplication myApp(argc, argv);
25  myApp.setApplicationName("MITK QuickRender");
26  myApp.setOrganizationName("DKFZ");
27 
28  QStringList preloadLibs;
29  preloadLibs << "liborg_mitk_example_gui_qmlapplication";
30  myApp.setPreloadLibraries(preloadLibs);
31  myApp.setProperty(mitk::BaseApplication::PROP_APPLICATION, "org.mitk.example.gui.qmlapplication");
32 
33  QByteArray on("1");
34 
35  qputenv("QML_BAD_GUI_RENDER_LOOP", on);
36 
37  return myApp.run();
38 }
void setPreloadLibraries(const QStringList &libraryBaseNames)
void setProperty(const QString &property, const QVariant &value)
void setOrganizationName(const QString &name)
void setApplicationName(const QString &name)
static QString PROP_APPLICATION
int main(int argc, char **argv)