[PyKDE] Typecasting problems with PyQt embedded in Scribus

Henning Schröder henning.schroeder at gmail.com
Thu Jun 30 17:33:28 BST 2005


Jim Bublitz <jbublitz at nwinternet.com>:
> [..]
> wrapinstance and unwrapinstance are covered in the sip docs.
Thanks I will try your C++/Python-mixed solution.

But I wonder why the following does not work:
	ptr = sip.unwrapinstance(qt.qApp.mainWidget())
	mainWindow = sip.wrapinstance(ptr, qt.QMainWindow)
Unfortunately mainWindow is still a QWidget.


More information about the PyQt mailing list