Hi, guys.
When I do the following my lineEdit is empty(note that comment is NOT an empty QString)
Code:
... lineEdit->setText(comment); table->setCellWidget(0, commentCol, lineEdit);
But this lineEdit is not empty if I do
Code:
... table->setCellWidget(0, commentCol, lineEdit); lineEdit->setText(comment);
Who knows why this happens? Thanks.