[Qt-interest] How Insert itens in QTableView ?
Mhayk Whandson
eu at mhayk.com.br
Fri Sep 11 15:28:34 CEST 2009
Hi all,
I create a table with 3 columns:
| Product Name | Amount | Price |
I have a one QLineEdit that the user enter with the product name and
when he pressed enter I show one other window with a products list
selecting the product that match with the product name inserted in the
QLineEdit. After the user select the correct product in the new window
he need to press enter and now I would like to get this product name
and create a first line in the QTableView filling the first column in
the first line with the product name, after this I will ask the user
how many products he want sell and after the user enter with the value
he will press enter, so I will insert now in the second column in the
first line the amount and the price value the same form. My doubt is
how can I insert the values in the model ? Could you show me an
example ?
best regards,
--
Mhayk Whandson
Linux User #413723
E-mail: eu at mhayk.com.br
More information about the Qt-interest-old
mailing list