Hi, guys.
When I do the following my lineEdit is empty(note that comment is NOT an empty QString)
...
lineEdit->setText(comment);
table->setCellWidget(0, commentCol, lineEdit);
QTableWdiget *table = QTableWidget;
...
lineEdit->setText(comment);
table->setCellWidget(0, commentCol, lineEdit);
To copy to clipboard, switch view to plain text mode
But this lineEdit is not empty if I do
...
table->setCellWidget(0, commentCol, lineEdit);
lineEdit->setText(comment);
QTableWdiget *table = QTableWidget;
...
table->setCellWidget(0, commentCol, lineEdit);
lineEdit->setText(comment);
To copy to clipboard, switch view to plain text mode
Who knows why this happens? Thanks.
Bookmarks