Results 1 to 3 of 3

Thread: QTableView Drag and Drop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: QTableView Drag and Drop

    Did you ever get this solved? I'm struggling with the same problem.

  2. #2
    Join Date
    Sep 2009
    Location
    Aachen, Germany
    Posts
    60
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2
    Thanked 7 Times in 7 Posts

    Default Re: QTableView Drag and Drop

    Did you set the Views defaultDropAction to Qt::MoveAction via setDefaultDropAction? If that doesn't work either you might try to create a custom view and reimplement mouseMoveEvent to start a drag yourself and delete the row after QDrag::exec

Similar Threads

  1. Replies: 2
    Last Post: 13th October 2010, 21:51
  2. Replies: 3
    Last Post: 10th June 2010, 15:13
  3. Replies: 0
    Last Post: 4th May 2010, 10:24
  4. QTableView and drag & drop
    By salvaste in forum Qt Programming
    Replies: 4
    Last Post: 18th January 2010, 16:51
  5. Drag and Drop QTableWidget and QTableView
    By scorpion11 in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2008, 09:33

Tags for this Thread

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.