ListViewText remove rows from list

Hello all,

I am on gtkmm-4.0 and I have a list view defined as ;

Gtk::ListViewText m_ListViewText;

which then can be read and written with;


m_ListViewText.get_text(row, column, string);

and

m_ListViewText.set_text(row, column, string);

what I am trying to accomplish is to remove a specific row, preferably highlighted or somehow chosen on demand. I can remove all columns with;

m_ListViewText.remove_all_columns();

but this removes all of them not a specific one.

Anyone can show some pointers on how to remove a specific row ?

Thanks in advance,

There is no documentation related to removing or erasing a list item that is already registered within the widget. So I had to define a liststore and treeselection where then following getselection/getselected is applied before using the erase function to the iterator.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.