Re: Problem with child rows on Treeviews



Arthur Maciel writes:
 > Hi there. I get the following compilation error when building a treeview
 > application. If I remove the children rows [which means the lines that
 > contain m_refTreeModel->append(row.children())] it compiles perfectly (but
 > is not a TreeModel anymore):
 >
 > application.cpp:73: error: no matching function for call to
 > `Gtk::ListStore::append()
         ^^^^^^^^^

Using Gtk::ListStore seems suspicious right away.
Give Gtk::TreeStore for m_refTreeModel a shot.



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