Created
September 11, 2015 00:58
-
-
Save patmarion/4bf2905e5f8b3c0b09d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Python.h> | |
#include <PythonQt.h> | |
#include <PythonQt_QtBindings.h> | |
int main(int argc, char **argv) | |
{ | |
PythonQt::init(0); | |
PythonQt_init_QtBindings(); | |
PythonQtObjectPtr main = PythonQt::self()->getMainModule(); | |
main.evalScript("import PythonQt.QtCore"); | |
main.evalScript("x = PythonQt.QtCore.QFile.ReadOnly"); | |
if (Py_IsInitialized()) | |
{ | |
Py_Finalize(); | |
} | |
PythonQt::cleanup(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment