Results 1 to 5 of 5

Thread: Problem with QTableWidget and Signals

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Dec 2006
    Posts
    849
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    6
    Thanked 163 Times in 151 Posts

    Default Re: Problem with QTableWidget and Signals

    You must not use values for the arguments of the slot in the connect call!
    (You should get an error message printed for your code, by the way.)

    Try like this
    Qt Code:
    1. connect(tableWidget, SIGNAL(cellChanged(int,int) ),
    2. this, SIGNAL(completeChanged(int,int)));
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. void completeChanged(int row, int col)
    2. {
    3. QTableWidgetItem *item = tableWidget->item(row,col);
    4. if (item->checkState() == ...)
    5. ...
    6. }
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to caduel for this useful post:

    rmagro (17th September 2008)

Similar Threads

  1. QTableWidget signals
    By QiT in forum Newbie
    Replies: 4
    Last Post: 1st April 2007, 14: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
  •  
Qt is a trademark of The Qt Company.