Results 1 to 2 of 2

Thread: Detect change to any cell in a QTableWidget

  1. #1
    Join Date
    Mar 2010
    Location
    Auckland, NZ
    Posts
    121
    Thanks
    9
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Detect change to any cell in a QTableWidget

    I need to be able to detect when anything has been changed in a table, in order to know whether or not I need to rewrite a file. I see that one can detect a change in an item - is there a simple way to detect a change any item?

    Thanks
    Gib


    Added after 49 minutes:


    Solved by setting up a slot to respond to the cellChanged signal:
    connect(tableWidget, SIGNAL(cellChanged(int, int) ),this, SLOT(ProtocolChanged(int, int)) );
    Last edited by gib; 26th June 2018 at 03:44.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect change to any cell in a QTableWidget


Similar Threads

  1. QTableWidget how could I detect is a cell is editing??
    By webquinty in forum Qt Programming
    Replies: 1
    Last Post: 30th November 2012, 15:27
  2. Replies: 3
    Last Post: 9th November 2012, 18:55
  3. How to "detect" when editing a cell in QTableWidget ends?
    By dobedidoo in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2011, 13:53
  4. Change line type for a particular cell in QTableWidget
    By ricardosf in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2010, 14:47
  5. Replies: 1
    Last Post: 7th December 2009, 18:56

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.