![]() |
PyQt4 embedding in C++ application
Hello,
I'm testing the python embedding with PyQt4 but unfortunately the loading in scratchbox fails with a strange message. The same code runs fine on Windows XP. Code:
Traceback (most recent call last): So maybe someone here knows why this error happens. C++ source of python initialization Source of python script |
Re: PyQt4 embedding in C++ application
Small update on this.
I found out funny things about the following lines of code: Code:
Py_Initialize(); Run these lines in a shared library which the main program loads at startup: works. Run these lines in a shared library which is loaded using QLibraryLoader at runtime: the error described in the first post :( So what now? Is there anything magic I don't know when using shared library runtime loading? |
Re: PyQt4 embedding in C++ application
Quote:
http://doc.qt.nokia.com/4.6/qlibrary.html#LoadHint-enum |
Re: PyQt4 embedding in C++ application
Thanks mate! I should have known that but overlooked it all the time :eek:
You made my day :) |
All times are GMT. The time now is 12:12. |
vBulletin® Version 3.8.8