Results 1 to 2 of 2

Thread: QTableWidget how could I detect is a cell is editing??

  1. #1
    Join Date
    May 2008
    Location
    Spain
    Posts
    92
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question QTableWidget how could I detect is a cell is editing??

    Hello,

    I would like to detect when a cell is editing or just start edit.

    At this moment, I could known when end edit with this code

    Qt Code:
    1. itemDelegate = new QItemDelegate();
    2. connect(itemDelegate, SIGNAL(closeEditor(QWidget*)), this, SLOT(execute()));
    3. ui.table->setItemDelegateForColumn(4, itemDelegate);
    To copy to clipboard, switch view to plain text mode 

    But I dont find how could I deteted when user star edit a cell.
    any advice??

    Thank you in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTableWidget how could I detect is a cell is editing??

    createEditor() on the delegate is called and then setEditorData() is called.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Detect when the content of a cell of QTableView is changed
    By qt_developer in forum Qt Programming
    Replies: 5
    Last Post: 21st August 2021, 17:00
  2. Replies: 3
    Last Post: 9th November 2012, 19: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, 14:53
  4. Replies: 2
    Last Post: 28th October 2010, 10:26
  5. Replies: 1
    Last Post: 7th December 2009, 19: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.