Important: Please read the Qt Code of Conduct -

[SOLVED][PyQt4] , moving from pyside, subclass problem

  • Hi,
    I' m moving some scripts from pyside 1.2 to pyqt4 and have some problems with subclass:

    I' ve got a QListView that use a subclass of QAbstractListModel as model.
    With pyside evrything is ok, with pyqt4 i've got this error when set the model :

    TypeError: QAbstractItemView.setModel(QAbstractItemModel): argument 1 has unexpected type 'QFavorislistModel'

    It' s like my subclass of QAbstractListModel 'QFavorislistModel' is not reconized as a QAbstractItemModel.

    I don't understand what wrong and what are the differneces between pyside and pyqt,
    If somone can highlight me,

  • missing update of lib still pointing on pyside (RESOLVED)

Log in to reply