On Mon, Jun 25, 2012 at 12:52 AM, Eric Mesa <ericsbinarywo...@gmail.com>wrote:
> OK, I did a bunch of googling and I think I can better word what I want to > do. I want to emit a signal in QML and catch it in a python slot. That > way it can be the arguments to a function within python. Can I please get > some help with this? The syntax is just indirect enough (like the signal > and slot have different names and all kinds of weirdness) that it's just > slightly out of reach for my brain to wrap itself around. > say you have mySignal(string foo) in QML. this is roughly what you'd do in python: view = QDeclarativeView() view.setSource(...) connect(view.rootObject(), SIGNAL(mySignal(QString)), receiver, SLOT(...)) I'm assuming the mySignal is in QML's root object. Hope this helps. Viranch > > Thanks, > -- > Eric Mesa > http://about.me/ericmesa > http://www.ericsbinaryworld.com > > > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel