@@ -60,15 +60,6 int main( int argc, char **argv ) | |||
|
60 | 60 | // evaluate a simple python script and receive the result a qvariant: |
|
61 | 61 | QVariant result = mainModule.evalScript("19*2+4", Py_eval_input); |
|
62 | 62 | |
|
63 | // Create object from python, hold onto reference in C++: | |
|
64 | PythonQtObjectPtr tag = mainModule.evalScript("EyeD3Tagger()\n", Py_eval_input); | |
|
65 | Q_ASSERT(!tag.isNull()); | |
|
66 | ||
|
67 | // call python methods from C++ | |
|
68 | tag.call("setFileName", QVariantList() << "t.mp3"); | |
|
69 | QVariant fn = tag.call("fileName", QVariantList()); | |
|
70 | Q_ASSERT(fn.toString() == QString("t.mp3")); | |
|
71 | ||
|
72 | 63 |
|
|
73 | 64 | QVBoxLayout* vbox = new QVBoxLayout; |
|
74 | 65 | QGroupBox* box = new QGroupBox; |
General Comments 0
You need to be logged in to leave comments.
Login now