Results 1 to 5 of 5

Thread: QTableWidget, dropping between the rows shall insert the item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: QTableWidget, dropping between the rows shall insert the item

    I am having the same problem. It works fine in QListWidget, but in QTableWidget it drags content from row i, drops onto row j, overwriting the content in row j, and row i is now blank

  2. #2
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: QTableWidget, dropping between the rows shall insert the item

    I just posted about this at Stack Overflow too, just to see if there is something obvious I am missing:
    http://stackoverflow.com/questions/2...n-qtablewidget

  3. #3
    Join Date
    Jun 2014
    Posts
    98
    Thanks
    43
    Thanked 4 Times in 4 Posts
    Platforms
    Windows

    Default Re: QTableWidget, dropping between the rows shall insert the item

    Someone at Stack Overflow answered. It's tricky, but doable:
    http://stackoverflow.com/a/26311179/1886357

    For a noob like me it is actually a beautiful example to work through.

Similar Threads

  1. QtableWidget that don't accept drop item between rows?
    By sergiomar73 in forum General Programming
    Replies: 3
    Last Post: 15th October 2010, 21:55
  2. Dropping on QTableWidget's child
    By blacker1611 in forum Qt Programming
    Replies: 2
    Last Post: 7th July 2010, 11:25
  3. TableView + SqlQueryModel: can't insert or edit rows
    By jiveaxe in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2008, 21:55
  4. Insert rows...
    By steg90 in forum Qt Programming
    Replies: 13
    Last Post: 18th September 2007, 13:36
  5. insert Item to my QTreeWidget
    By raphaelf in forum Qt Programming
    Replies: 7
    Last Post: 28th February 2006, 15:42

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.