landstreicher
16th July 2010, 09:36
Hi,
i nearly searched all the web for this problem. My last chance is to post my problem here.
I need a tableWidget that contains multiple strings and checkboxes in one row. These checkboxes should change their value be clicking once.
So i created a delegate to customize a tableWidget. It almost does the things i needed, but when i change the triggers for editing the tableWidget to "SelectedClick" only, the delegate functions "createEditor","setEditor" and "setModelData" would not be called. The are called, if i double click the checkbox field, to enter editor mode, but that's not what i want.
So, does anyone have an hint?
Thanks.
For your information: Qt 4.6.3 on ubuntu and that little attached project is only a test to demonstrate my problem...
i nearly searched all the web for this problem. My last chance is to post my problem here.
I need a tableWidget that contains multiple strings and checkboxes in one row. These checkboxes should change their value be clicking once.
So i created a delegate to customize a tableWidget. It almost does the things i needed, but when i change the triggers for editing the tableWidget to "SelectedClick" only, the delegate functions "createEditor","setEditor" and "setModelData" would not be called. The are called, if i double click the checkbox field, to enter editor mode, but that's not what i want.
So, does anyone have an hint?
Thanks.
For your information: Qt 4.6.3 on ubuntu and that little attached project is only a test to demonstrate my problem...