<div dir="ltr"><div class="markdown-here-wrapper" style><p style="margin:1.2em 0px!important">Ah, I see. I was trying to use it in a <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">pyqtSlot</code>.</p>
<p style="margin:1.2em 0px!important">Could you have a look at the below example and see I’m thinking about this the right way?</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code class="hljs language-python" style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;overflow-x:auto;padding:0.5em;color:rgb(51,51,51);background:rgb(248,248,248)"><span class="hljs-decorator">@QtCore.pyqtSlot(QtCore.QStringList)</span>
<span class="hljs-function"><span class="hljs-keyword" style="color:rgb(51,51,51);font-weight:bold">def</span> <span class="hljs-title" style="color:rgb(153,0,0);font-weight:bold">warning</span><span class="hljs-params">(self, *msg)</span>:</span>
    self.log.warning(<span class="hljs-string" style="color:rgb(221,17,68)">" "</span>.join(msg))
</code></pre>
<p style="margin:1.2em 0px!important">I’m looking to pass a list into the slot (from QML, if that makes a difference).</p>
<p style="margin:1.2em 0px!important">Best,<br>Marcus</p>
<div title="MDH:QWgsIEkgc2VlLiBJIHdhcyB0cnlpbmcgdG8gdXNlIGl0IGluIGEgYHB5cXRTbG90YC48ZGl2Pjxi
cj48L2Rpdj48ZGl2PkNvdWxkIHlvdSBoYXZlIGEgbG9vayBhdCB0aGUgYmVsb3cgZXhhbXBsZSBh
bmQgc2VlIEknbSB0aGlua2luZyBhYm91dCB0aGlzIHRoZSByaWdodCB3YXk/PGJyPjxkaXY+PGJy
PjwvZGl2PjxkaXY+YGBgcHl0aG9uPC9kaXY+PGRpdj48ZGl2PkBRdENvcmUucHlxdFNsb3QoUXRD
b3JlLlFTdHJpbmdMaXN0KTwvZGl2PjxkaXY+ZGVmIHdhcm5pbmcoc2VsZiwgKm1zZyk6PC9kaXY+
PGRpdj4mbmJzcDsgJm5ic3A7IHNlbGYubG9nLndhcm5pbmcoIiAiLmpvaW4obXNnKSk8L2Rpdj48
L2Rpdj48ZGl2PmBgYDwvZGl2PjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SSdtIGxvb2tpbmcg
dG8gcGFzcyBhIGxpc3QgaW50byB0aGUgc2xvdCAoZnJvbSBRTUwsIGlmIHRoYXQgbWFrZXMgYSBk
aWZmZXJlbmNlKS48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkJlc3QsPC9kaXY+PGRpdj5NYXJj
dXM8L2Rpdj4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2014 at 09:48, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Marcus Ottosson <<a href="mailto:konstruktion@gmail.com">konstruktion@gmail.com</a>> [2014-11-25 09:39:43 +0000]:<br>
<span class="">> Has it been removed from PyQt5.3.2?<br>
<br>
</span>See [1] - you just use a normal Python string (or a list of them)<br>
instead.<br>
<br>
Flo<br>
<br>
[1] <a href="http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#python-strings-qt-strings-and-unicode" target="_blank">http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#python-strings-qt-strings-and-unicode</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://www.the-compiler.org" target="_blank">http://www.the-compiler.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
             GPG 0xFD55A072 | <a href="http://the-compiler.org/pubkey.asc" target="_blank">http://the-compiler.org/pubkey.asc</a><br>
         I love long mails! | <a href="http://email.is-not-s.ms/" target="_blank">http://email.is-not-s.ms/</a><br>
</font></span><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font size="1"><b>Marcus Ottosson</b><br><a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a></font><font size="1"><br></font></div></div>
</div>