Results 1 to 14 of 14

Thread: whole row drag/drop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: whole row drag/drop

    May I ask, why do you insist of rewriting error prone mimeData() and dropMimeData() if QAbstractItemModel/QAbstractTableModel already implements them for you? Just take a look at src/corelib/kernel/qabstractitemmodel.cpp if you don't believe me. All the data returned by itemData() is packed to MIME data by default so you can simply embed your CAN messages to those. As a proof of concept, I have attached an example which does not reimplement mimeData() nor dropMimeData().
    Attached Files Attached Files
    J-P Nurmi

Similar Threads

  1. QTreeWidget drag/drop
    By s_a_white in forum Newbie
    Replies: 1
    Last Post: 10th February 2007, 22:04

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
  •  
Qt is a trademark of The Qt Company.