[PyQt] Where is QStringList?
Florian Bruhin
me at the-compiler.org
Tue Nov 25 10:29:51 GMT 2014
* Marcus Ottosson <konstruktion at gmail.com> [2014-11-25 09:59:21 +0000]:
> 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))
(bleh, seems like your mail client messed this up...)
You can pass a C++ type as a string to pyqtSlot, i.e.:
@QtCore.pyqtSlot('QStringList')
should probably work.
Florian
--
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141125/fc30245d/attachment-0001.sig>
More information about the PyQt
mailing list