Results 1 to 2 of 2

Thread: How to "detect" when editing a cell in QTableWidget ends?

  1. #1
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    34
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Question How to "detect" when editing a cell in QTableWidget ends?

    Hi,

    I'm struggling to find out how I can "detect" when editing a cell in my QTableWidget ends.

    If the content/text in the cell was changed then I can just use the cellChanged signal, but if the content/text in the cell has not changed, then that signal is never triggered. This gives me problems. I really need something similar like an "editingEnded(...)", signal which is triggered whenever the "editing mode" is left (regardless of whether cell content/text has changed or not).

    How on earth can I achieve this?

    Many thanks in advance,

    dobedidoo

  2. #2
    Join Date
    Mar 2011
    Posts
    12
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to "detect" when editing a cell in QTableWidget ends?

    I think you can use the signal cellActivated ( ) for detecting the cursor entry and emit a signal manually upon next click(may on another cell) so that we can say "editing ended".
    Or you can try itemSelectionChanged also. Have you tried itemEntered ( ) as well?

Similar Threads

  1. Replies: 1
    Last Post: 7th April 2010, 21:46
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.