PDA

View Full Version : problem of subclass QTableItem



hesummar
4th November 2006, 09:32
Hello,everyone!When i inherited QTableItem,I can't display the text from QLineEdit . I used QLineEdit as the editor .Can you tell me how to do it ? Thank you very much!!

hesummar
4th November 2006, 09:41
I had reimplement setText() and Text() . There are the codes:
void TableItem::setText(QString s){
QTableItem::setText(s);
}
QString TableItem::text(){
return QTableItem::text();
}