MCPcopy Create free account
hub / github.com/MITK/MITK / main

Function main

Examples/Tutorial/Step6/Step6main.cpp:20–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <QApplication>
19#include <itksys/SystemTools.hxx>
20int main(int argc, char *argv[])
21{
22 QApplication qtapplication(argc, argv);
23
24 if (argc < 2)
25 {
26 fprintf(
27 stderr, "Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
28 return 1;
29 }
30
31 // Register Qmitk-dependent global instances
32 QmitkRegisterClasses();
33
34 Step6 mainWidget(argc, argv, nullptr);
35 mainWidget.Initialize();
36 mainWidget.show();
37
38 return qtapplication.exec();
39}
40/**
41\example Step6main.cpp
42*/

Callers

nothing calls this directly

Calls 3

QmitkRegisterClassesFunction · 0.85
showMethod · 0.80
InitializeMethod · 0.45

Tested by

no test coverage detected