PDA

View Full Version : How to display text that input using QLineEdit to QtableView/QTableWidget



hisbil
5th March 2013, 16:48
Hi, i new here..
i new in developer Qt/c++, i wanna ask How to display text that input using QLineEdit to QtableView/QTableWidget without the Database?? so when i input data from QLineEdit, i can display the data on my tableview/tablewidget. i just read the thread about display data from Qlineedit to tableview but using mysql..
help me anybody here.. thank.. and sorry sorry if my english is less true.. i'm from indonesia..:) :D

thomas@itest
5th March 2013, 18:40
With a QTableView you can look at QDataWidgetMapper (maybe other tools are available)
With a QTableWidget, I'm scared that you must do it by hand ... (but I'm not sure)

Ashkan_s
5th March 2013, 18:40
Use QStandardItemModel or QTableWidgetItem