Results 1 to 4 of 4

Thread: Sync sorting of a QTableWidget to other QTableWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2015
    Posts
    2
    Qt products
    Platforms
    MacOS X Windows

    Default Sync sorting of a QTableWidget to other QTableWidget

    Hi,

    I've two QTableWidgets that have rows related to each other (e.g. identical row count). I want to enable sorting of a selected column and keep the related rows in sync. What would be a good way of implementing this?

    The other QTableWidget is also related to an underlying datacontainer-class, which will also need to be synchronized. However I'm still considering, if I should try to get rid of the underlying datacontainer to keep things simpler.

    Thank you for your time!

    Edit: Oh I see now that I should propably be using the QTableView to begin with :/ At least with the other table.
    Last edited by Ro; 31st July 2015 at 11:36.

Similar Threads

  1. QTableWidget sorting
    By abrou in forum Newbie
    Replies: 2
    Last Post: 6th June 2012, 11:53
  2. QTableWidget and sorting like int
    By TomASS in forum Newbie
    Replies: 3
    Last Post: 18th February 2010, 15:54
  3. Sorting a qtablewidget......
    By reshma in forum Qt Programming
    Replies: 8
    Last Post: 23rd March 2009, 15:34
  4. QTableWidget sorting
    By losiem in forum Qt Programming
    Replies: 4
    Last Post: 14th July 2008, 21:20
  5. QTableWidget Sorting
    By mclark in forum Newbie
    Replies: 4
    Last Post: 29th September 2006, 23:34

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.