Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
DDqt.cxx
Go to the documentation of this file.
1/* This file is part of MODEL, the Mechanics Of Defect Evolution Library.
2 *
3 * Copyright (C) 2017 by Giacomo Po <gpo@ucla.edu>.
4 *
5 * model is distributed without any warranty under the
6 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
7 */
8
9#ifdef _MODEL_PYBIND11_ // COMPILED WITH PYBIND11
10#include <pybind11/pybind11.h>
11#include <pybind11/embed.h>
12#endif
13#include <QtWidgets/QApplication>
14#include <QVTKOpenGLNativeWidget.h>
15#include <DDqtMainWindow.h>
16
17
18int main(int argc, char *argv[])
19{
20#ifdef _MODEL_PYBIND11_ // COMPILED WITH PYBIND11
21 pybind11::scoped_interpreter guard{};
22#endif
23 QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat()); // needed to ensure appropriate OpenGL context is created for VTK rendering.
24 QApplication a(argc, argv);
26 window.show();
27 return a.exec();
28}
29
a
Definition int_R.m:14
void argv
void b int argc