[Qt-interest] Passing QStringList with signals

Arnold Krille arnold at arnoldarts.de
Thu Aug 19 00:31:47 CEST 2010


On Wednesday 18 August 2010 22:16:32 siteshwar at gmail.com wrote:
> I was trying to pass some data using QStringList as argument to a signal in
> my Qt application; but since QStringList doesn't derive from QObject;
> passing it is not allowed. What's the advised way to do so ?

Actually if QStringList was derived from QObject, that would lower its chances 
of using as for arguments of slots. (QObject and derivates can only be passed 
as pointers through the signal/slot system, otherwise it would need copy-
constructors. See the other thread about that.)
As QStringList is one of the basic types of Qt, it is by default possible to 
pass it via signals/slots. Even across thread-boundaries.
If that doesn't work for you, the error is somewhere else...

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100819/9c69ad51/attachment.bin 


More information about the Qt-interest-old mailing list