Results 1 to 3 of 3

Thread: Close a QtableWidget cell

  1. #1
    Join Date
    Mar 2008
    Posts
    57
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Close a QtableWidget cell

    Is there a signal I can use to indicate that the cell edited has been closed in a QtableWidget?

  2. #2
    Join Date
    Mar 2008
    Posts
    57
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Close a QtableWidget cell

    I have solved my problem for the moment. I use :

    Qt Code:
    1. connect(qTableWidget, SIGNAL(cellChanged(int, int)), this, SLOT(updateWorktaskEditor()));
    To copy to clipboard, switch view to plain text mode 

    for the moment. The problem is that the connect has to be defined after I have finished loading the table? This is a problem...

  3. #3
    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: Close a QtableWidget cell

    You can also connect to QAbstractItemDelegate::closeEditor() signal as it seems more appropriate.

Similar Threads

  1. Replies: 5
    Last Post: 26th October 2014, 12:56
  2. Center a widget in a cell on a QTableWidget
    By roleroz in forum Qt Programming
    Replies: 16
    Last Post: 5th March 2009, 14:47
  3. Word wrapping in a QTableWidget cell
    By jcooperddtd in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 03:57
  4. Selection of cell with QWidget in QTableWidget
    By Tamara in forum Qt Programming
    Replies: 7
    Last Post: 17th February 2007, 14:11
  5. Qmenu Stable close on QTableWidget
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2006, 10:03

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.