kaile
January 8, 2024, 4:26pm
1
Hello all,
I am trying to achieve a progress bar update to the example in the example book treeview list.
row = *(m_refTreeModel->append());
row[m_Columns.m_col_id] = 2;
row[m_Columns.m_col_name] = "Joey Jojo";
row[m_Columns.m_col_number] = 20;
row[m_Columns.m_col_percentage] = 40;
I would like to increase number 40 assigned to row[m_Columns.m_col_percentage] in a loop or a button press event. What would be the appropriate way to achieve such a task ?
Thanks in advance,
kaile
January 10, 2024, 11:16am
2
Does anybody have any idea if ;
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns()
{ add(m_col_id); add(m_col_name); add(m_col_number); add(m_col_percentage);}
Gtk::TreeModelColumn<unsigned int> m_col_id;
Gtk::TreeModelColumn<Glib::ustring> m_col_name;
Gtk::TreeModelColumn<short> m_col_number;
Gtk::TreeModelColumn<int> m_col_percentage;
};
Gtk::TreeModelColumn m_col_percentage is updateable in a loop ?
system
(system)
Closed
February 9, 2024, 11:17am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.