Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    Language Bindings
    1
    2
    876
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      youmcheck last edited by

      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,
      Thanks
      Arnaud

      1 Reply Last reply Reply Quote 0
      • Y
        youmcheck last edited by

        missing update of lib still pointing on pyside (RESOLVED)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post