lyuts
20th November 2008, 19:27
Hi, guys.
When I do the following my lineEdit is empty(note that comment is NOT an empty QString)
QTableWdiget *table = QTableWidget;
...
lineEdit->setText(comment);
table->setCellWidget(0, commentCol, lineEdit);
But this lineEdit is not empty if I do
QTableWdiget *table = QTableWidget;
...
table->setCellWidget(0, commentCol, lineEdit);
lineEdit->setText(comment);
Who knows why this happens? Thanks.
When I do the following my lineEdit is empty(note that comment is NOT an empty QString)
QTableWdiget *table = QTableWidget;
...
lineEdit->setText(comment);
table->setCellWidget(0, commentCol, lineEdit);
But this lineEdit is not empty if I do
QTableWdiget *table = QTableWidget;
...
table->setCellWidget(0, commentCol, lineEdit);
lineEdit->setText(comment);
Who knows why this happens? Thanks.