Results 1 to 2 of 2

Thread: update custom QStyledItemDelegate after drag

  1. #1
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    5

    Default update custom QStyledItemDelegate after drag

    Howdy folks,

    I've been having a problem with a custom delegate which is based on QStyledItemDelegate. The delegate is connected to a QListView that is connected to a QSortFilterProxyModel (used for filtering), which is in turn connected to a QStandardItemModel. When i drag items from the list, the listView is not updated.

    The problem is that a QTreeView and it's custom QStyledItemDelegate DO update when items are dragged away. -> Both the QListView and the QTreeView are connected to a QItemSelectionModel, which is connected to the QSortFilterProxyModel in order to keep track of selections.

    Could there be an event that should be handled that i'm missing ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,013 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: update custom QStyledItemDelegate after drag

    Could we see some code?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.