Skip to content

Commit ef5d52c

Browse files
author
florianlink
committed
fixed example for 2.0 API
git-svn-id: https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk@193 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent e2d18f7 commit ef5d52c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

examples/PyGettingStarted/main.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ int main( int argc, char **argv )
6060
// evaluate a simple python script and receive the result a qvariant:
6161
QVariant result = mainModule.evalScript("19*2+4", Py_eval_input);
6262

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-
7263
// create a small Qt GUI
7364
QVBoxLayout* vbox = new QVBoxLayout;
7465
QGroupBox* box = new QGroupBox;

0 commit comments

Comments
 (0)