Hi guys,
I'm wondering how to copy the data on a field of a QSqlTableModel into a TextEdit. Any ideas? Please post some code.
Thanks in advance,
Hi guys,
I'm wondering how to copy the data on a field of a QSqlTableModel into a TextEdit. Any ideas? Please post some code.
Thanks in advance,
try like this :
Qt Code:
QSqlTableModel model; model.setTable("employee"); // to get the value of the field "name" in the 4th record (also you can loop for all the records): textEdit->append(name);To copy to clipboard, switch view to plain text mode
Nefastious (16th September 2009)
Bookmarks