[PyQt] Where is QStringList?

Marcus Ottosson konstruktion at gmail.com
Tue Nov 25 09:59:21 GMT 2014


Ah, I see. I was trying to use it in a pyqtSlot.

Could you have a look at the below example and see I’m thinking about this
the right way?

@QtCore.pyqtSlot(QtCore.QStringList)def warning(self, *msg):
    self.log.warning(" ".join(msg))

I’m looking to pass a list into the slot (from QML, if that makes a
difference).

Best,
Marcus
​

On 25 November 2014 at 09:48, Florian Bruhin <me at the-compiler.org> wrote:

> * Marcus Ottosson <konstruktion at gmail.com> [2014-11-25 09:39:43 +0000]:
> > Has it been removed from PyQt5.3.2?
>
> See [1] - you just use a normal Python string (or a list of them)
> instead.
>
> Flo
>
> [1]
> http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#python-strings-qt-strings-and-unicode
>
> --
> http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
>              GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc
>          I love long mails! | http://email.is-not-s.ms/
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
*Marcus Ottosson*
konstruktion at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141125/e74ddace/attachment.html>


More information about the PyQt mailing list