Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [SOLVED][PyQt4] , moving from pyside, subclass problem
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Language Bindings
2 Posts 1 Posters 1.0k Views
  • 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 Offline
    Y Offline
    youmcheck
    wrote on last edited by
    #1

    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
    0
    • Y Offline
      Y Offline
      youmcheck
      wrote on last edited by
      #2

      missing update of lib still pointing on pyside (RESOLVED)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved