<br><br><div class="gmail_quote">On Mon, Jun 25, 2012 at 12:52 AM, Eric Mesa <span dir="ltr"><<a href="mailto:ericsbinaryworld@gmail.com" target="_blank">ericsbinaryworld@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
</blockquote><div><br></div><div>say you have mySignal(string foo) in QML. this is roughly what you'd do in python:</div><div><br></div><div>view = QDeclarativeView()</div><div>view.setSource(...)</div><div>connect(view.rootObject(), SIGNAL(mySignal(QString)), receiver, SLOT(...))</div>
<div><br></div><div>I'm assuming the mySignal is in QML's root object. Hope this helps.</div><div><br></div><div>Viranch</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>Thanks,<br clear="all">--<br>Eric Mesa<div><a href="http://about.me/ericmesa" target="_blank">http://about.me/ericmesa</a><br><a href="http://www.ericsbinaryworld.com" target="_blank">http://www.ericsbinaryworld.com</a></div>

<br>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br>