Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, April 2007
Setting a QCheckTableItem checked


Message 1 in thread

Hi all,
I am using QT 3.3.3 on Scientific Linux.
I have designed GUI in the designer including a table (QTable) with a
column populated by QCheckTableItem items set unchecked at startup.
While running I want to check them as long as some activities are done

Here is the function used to set the item checked:

void MainForm::checkCurrentSource()
{
    QCheckTableItem *item;
    item = (QCheckTableItem *)sourceTable->item(currentRow,OK_COL);
    item->setChecked(true);
    sourceTable->setItem(currentRow,OK_COL,item);
    sourceTable->updateCell(currentRow,OK_COL);
}

but nothing happens.
Note that the table is NOT set readonly.

Thanks

Francesco
-- 
 [ signature omitted ]