Results 1 to 3 of 3

Thread: [Solved] QTableView - How to get content from edited cell

  1. #1
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Question [Solved] QTableView - How to get content from edited cell

    Hello,
    Does anyone know how would I get the currently edited cell's content in a QTableView? I need to know so then I can make these changes to my QSqlTableModel.

    Thanks,
    VOT.
    Last edited by VOT; 4th October 2015 at 13:21.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QTableView - How to get content from edited cell

    The table view, or rather the item delegate used by the view, should already call your model's setData() method.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    VOT (4th October 2015)

  4. #3
    Join Date
    Oct 2015
    Posts
    3
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: QTableView - How to get content from edited cell

    Thanks, that was the answer to my problem

Similar Threads

  1. Replies: 5
    Last Post: 26th October 2014, 12:56
  2. Detect when the content of a cell of QTableView is changed
    By qt_developer in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2012, 09:59
  3. Getting Cell Content of QTableWidget
    By Kclark in forum Qt Programming
    Replies: 1
    Last Post: 27th December 2010, 13:30
  4. QTableView invisible content
    By danczer in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2010, 14:44
  5. How to know when field is edited within QTableView
    By dkite in forum Qt Programming
    Replies: 3
    Last Post: 1st January 2007, 18:51

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.