Results 1 to 2 of 2

Thread: How to detect when item is changed in the table view?

  1. #1
    Join Date
    Jul 2011
    Posts
    16
    Qt products
    Qt4
    Platforms
    Windows

    Default How to detect when item is changed in the table view?

    I have this table view where I write some data in different columns. I am adding the data by writing it in text boxes and clicking the "add" button. And I am modifying it by selecting a row in the table view, copying the data into the text boxes, editing it and pressing the "save" button.

    The data from the text boxes apart from being sent to the table view is also being used for other calculations in my application.

    I would like to be able to modify the data directly on the table view and then send the changed data to do the calculations that I need in another class - in my case.

    For now I can modify the data on the table view but how could I send the signal that the data has been modified in the view?

    Any ideas?

  2. #2
    Join Date
    Aug 2011
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to detect when item is changed in the table view?

    QStandardItemModel has a signal named itemChanged.

Similar Threads

  1. Replies: 1
    Last Post: 8th June 2011, 15:13
  2. Replies: 1
    Last Post: 24th October 2010, 12:09
  3. Replies: 5
    Last Post: 3rd April 2010, 05:07
  4. Replies: 1
    Last Post: 1st February 2010, 19:42
  5. Catch item changed
    By nina1983 in forum Qt Programming
    Replies: 2
    Last Post: 18th July 2008, 15:40

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.