[PySide] Accessing C++ QObject subclass from script?
Hugo Parente Lima
hugo.lima at openbossa.org
Mon May 28 19:51:34 CEST 2012
On Friday, May 25, 2012 04:09:24 PM Paul Miller wrote:
> On 5/25/2012 3:59 PM, Alexander Jones wrote:
> > Something like this?
> > http://www.pyside.org/docs/shiboken/shibokenmodule.html#shiboken.wrapInsta
> > nce
> Yeah I saw that but it wasn't apparent how I was to use this from within
> my C++ application. Is there a tutorial or example for how to use this?
Maybe the unit test code could help you:
> > On 22 May 2012 22:14, Paul Miller <paul at fxtech.com
> > <mailto:paul at fxtech.com>> wrote:
> > I got PySide 1.1 working in my hybrid app (thanks Roman for your
> > help!)
> > using Qt 4.7.4 and Python 2.7. I can create new Qt widgets and use my
> > existing C++ QApplication and it seems to work fine.
> > Now I would like to expose some of my internal QObjects that have
> > already been created by the time the Python interpreter starts up.
> > For my existing data model interface to Python, I've hand-created some
> > Python bindings for my classes. What do I need to do to return a
> > pointer
> > to one of my created QObjects back into PySide, so I can connect
> > signals
> > to it?
> > *I can't use an auto-type-generator thingy like in the superhybrids
> > article*.
> > _______________________________________________
> > PySide mailing list
> > PySide at qt-project.org <mailto:PySide at qt-project.org>
> > http://lists.qt-project.org/mailman/listinfo/pyside
> > --
> > Alexander Jones
> > Double Negative R&D
> > www.dneg.com <http://www.dneg.com>
> PySide mailing list
> PySide at qt-project.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: This is a digitally signed message part.
More information about the PySide