[PyQt] PyQt 5: Equality operator not implemented for	QStringListModel?
    Arve Knudsen 
    arve.knudsen at gmail.com
       
    Wed Jun 25 15:57:28 BST 2014
    
    
  
Hi guys
Using PyQt 5.2.1, I've noticed that comparing two QStringListModels for
equality always returns false, is there any reason for this? Example:
    from PyQt5 import QtCore
    model1 = QtCore.QStringListModel(['1', '2'])
    model2 = QtCore.QStringListModel(['1', '2'])
    print(model1 == model2) # Prints False
    # Corresponding QStringLists can be compared OTOH
    print(model1.stringList() == model2.stringList()) # Prints True
Thanks,
Arve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140625/68659b9b/attachment-0001.html>
    
    
More information about the PyQt
mailing list