PDA

View Full Version : Delegate but when



uygar
12th October 2007, 18:58
Dear all;
I delegate some columns of my QTableWidget. After I double clıck the column and finish the editing, some data returns for some other columns. There is noting wrong with it.
But if I send a data to the already delegated column by code (not by double click), I can't return the data for other columns that I told about.
How can I activate the delegate class by code whıt out double clicking

wysota
12th October 2007, 20:28
I guess that by "delegating" you mean "edit". You can change the "editTriggers" property of your table widget (the property is defined in QAbstractItemView). You can define a set of triggers that will cause the cell to be edited.