PDA

View Full Version : Editing directly in a ListView!



Humble
28th August 2007, 07:15
Hi all!

I have implemented a ListView with several columns, for displaying large amounts of data. The purpose is to aloow the user to view alot of data at once, to help them valiadte some of it.

In this view there is ONE column that can contain false data, or data that needs to be changed. I've implemented a little popup that show's when the user click the item, and allows the user to change the data, but there is a request to actually just edit the value right in the listview without showing the popup, just as it was an TableWidget. Can this easily be done, or is it better to just move it all over to a TableWidget?

The importance here is also that the user isnt allowed to change anything else than the data in this column.

Grateful for som advices ...

jpn
28th August 2007, 08:15
Could you be more specific about widgets and Qt version you use? A "multi column list view" is a Qt 3 widget but a "table widget" is a Qt 4 widget. So do you mean Qt 3's QListView? In Qt 4, QTreeView is used for multi column lists.

Humble
29th August 2007, 08:37
Yas, thats right, Sry, for beeing unclear, but we are still using Qt3 and it is a multicolumn listview.