Results 1 to 2 of 2

Thread: Problem with Drag & Drop between two TableViews with custom model

  1. #1
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    29
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem with Drag & Drop between two TableViews with custom model

    Hi,

    i'm trying to move rows between two QTableViews. Both have the same custom model. I reimplemented insertRows, removeRow, removeRows, setItemData, setData and supportedDropActions.
    In my views I selected dragEnabled=true, dragDropMode=DragDrop, defaultDropAction=MoveAction, selectionBehaviour=SelectRows.
    Now when I try to drag and drop something no dropIndicator is shown and I see the small symbol which shows that drop isn't possible on my view.

    And ideas?

    Thanks,
    Chris
    Last edited by cevou; 31st July 2010 at 13:32.

  2. #2
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    29
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with Drag & Drop between two TableViews with custom model

    There must be some way to move around rows with QTableView/QAbstractTable model.
    But how?

Similar Threads

  1. Drag & drop with model/view (Qt4)
    By yogeshm02 in forum Qt Programming
    Replies: 16
    Last Post: 19th September 2011, 20:36
  2. Drag and drop between model views
    By larry104 in forum Qt Programming
    Replies: 20
    Last Post: 19th January 2008, 16:09
  3. Replies: 1
    Last Post: 30th November 2007, 11:55
  4. Drag n Drop problem
    By ScoOteR in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2007, 10:52
  5. Model Drag'n'Drop - Default Move
    By Lemming in forum Qt Programming
    Replies: 2
    Last Post: 18th December 2006, 21:46

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.