itom
Loading...
Searching...
No Matches
0.h
1#ifndef A_H
2#define A_H
3
4// This file is a dirty little trick for the automoccer of qt - we MUST include our python stuff before ANY
5// qt stuff so we make this class which is first in the file list and first in alphabet and gets included
6// in the automoccer cpp file first
7
8#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
9
11// see http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7f3f750596a105d48ea84ebfe1b1c4ca03e0bab3
12#if (defined _DEBUG) && (defined WIN32)
13 // see https://github.com/microsoft/onnxruntime/issues/9735#issuecomment-970718821
14 #include <corecrt.h>
15
16
17 #undef _DEBUG
18
19 //workaround following: https://stackoverflow.com/questions/23068700/embedding-python3-in-qt-5
20 #pragma push_macro("slots")
21 #undef slots
22 #include "Python.h"
23 #pragma pop_macro("slots")
24 #include "numpy/arrayobject.h" //for numpy arrays
25 #define _DEBUG
26#else
27 //workaround following: https://stackoverflow.com/questions/23068700/embedding-python3-in-qt-5
28 #pragma push_macro("slots")
29 #undef slots
30 #include "Python.h"
31 #pragma pop_macro("slots")
32 #include "numpy/arrayobject.h"
33#endif
34
35#include <qobject.h>
36
37class qDummyClass : public QObject
38{
39 Q_OBJECT
40 public:
41 qDummyClass() {};
42 ~qDummyClass() {};
43
44 private:
45};
46
47#endif // A_H
python
Definition 0.h:38