[PyQt] Signals, QStrings

Phil Thompson phil at riverbankcomputing.com
Wed Nov 26 22:38:02 GMT 2008


On Wed, 26 Nov 2008 17:11:26 -0500, Matt Smith <melkor at orangepalantir.org>
wrote:
> Here is a basic question because I am not so familiar with cpp.  Whats
> the difference between:
> 
> emit(SIGNAL("mySignal( QString )"),myQstring)
> emit(SIGNAL("mySignal( const QString&)"),myQstring)
> 
> and more importantly, which one should I use?

They are equivalent. Qt converts the second to the first under the covers.

Phil


More information about the PyQt mailing list