ruda
22nd March 2011, 03:51
I'm translating a little app that I made in PHP-Gtk to Qt. I was going well till I had to do what in Gtk is a GtkTreeView, but in Qt I guess it's a QTableView or a QTableWidget, I don't know which one to use. Basically it has 3 columns (Accounts, Password, Group Id) and must have the option to sort the items asc/desc. Here is a pic of my app:
http://img04.imgland.net/aB23Ojk2mE.jpg
If you double-click any item, the entries below will be filled according to the item you cliked.
If you click Prev/Next buttons, it will clear the list and add the new items.
I'm really lost because:
1. I dont know what is better to my case: QTableView or QTableWidget
2. I couldn't test any of both, since I didn't find any simple example to newbies
So... could someone show me how to do a simple table like in the pic? All the examples I found were difficult.
Thanks
PS: (I just want the table, forget the other widgets)
http://img04.imgland.net/aB23Ojk2mE.jpg
If you double-click any item, the entries below will be filled according to the item you cliked.
If you click Prev/Next buttons, it will clear the list and add the new items.
I'm really lost because:
1. I dont know what is better to my case: QTableView or QTableWidget
2. I couldn't test any of both, since I didn't find any simple example to newbies
So... could someone show me how to do a simple table like in the pic? All the examples I found were difficult.
Thanks
PS: (I just want the table, forget the other widgets)