Large amount of rows in a TreeView list.



Hello,

My application should display big database tables in a TreeView list (~10000 rows). Because, in this case, calling the append method of Gtk2::ListStore for each row is not very efficient, I would like to avoid to copy result sets in this list model.

To solve this problem, the MFC CListLiew control has a callback mechanism asking to application row data to display for only visible rows in the list.

To have the same effect in GTK2, I think it's necessary to subclass the Gtk2::TreeModel. But that seems me complex.

Do you know a better way or where I can find code samples demonstrating how to subclass the Gtk2::TreeModel?

Thank you for your help.

Regards,

clsd




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]