In qt 3 you must subclasss QTableItem and reinplement createEditor().I think something like that must be in 4 version