Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    [solved[ Pyside crashing when connecting the currentChanged signal of the model

    General and Desktop
    1
    1
    1037
    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.
    • K
      koen last edited by

      Not sure how to delete a post, so I'll edit it. I ran into this I guess. https://bugreports.qt-project.org/browse/PYSIDE-79

      Hello all,

      I did not see a python specific forum, I apologize if this is not the right place for this question.

      I cant get the combination of a QSortFilterProxyModel and selectionModel to work, it crashes my script.

      If I take the example: http://qt.gitorious.org/pyside/pyside-examples/blobs/master/examples/itemviews/basicsortfiltermodel.py

      and add:

      @self.proxyView.selectionModel().currentChanged.connect(self.handleSelectionChanged)@

      to the init()

      and use:

      @def handleSelectionChanged(self, current, previous):
      print 'hello'@

      as the callback, the script keeps crashing on me. Is this expected behavior?

      Any information would be appreciated.

      Koen-

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