Re: [glade--]Treeview no glademm


It seems you are talking about the treeview on glademm,
so let me ask a question about it too.

I would like to use tree view on glademm(2.0.0) as below.
For example, suppose there is a tree view as below.

item1   |  item2  |  item3 
entry11 | entry12 | entry13
entry21 | entry22 | entry23
entry31 | entry32 | entry33

I want to make it output entry21 to std::cout when I click entry21.
1.Is "select_cursor_row" signal the right signal to connect to do that?
2.I selected the "select_cursor_row" signal and tried to compile the code
  but failed. The error message I got is shown below. `window1_glade::window1_glade()' in the constructor : no matching function for call to `Glib::SignalProxy1<bool, 
   bool>::connect(SigC::Slot1<void, bool>)'
/usr/include/gtkmm-2.0/glibmm/signalproxy.h:136: candidates are: 
   SigC::Connection Glib::SignalProxy1<R, P1>::connect(const SigC::Slot1<R, 
   P1>&, bool = true) [with R = bool, P1 = bool]
make: *** [window1_glade.o] error 1

I didn't do anything but just I put the treeview on a window and
selected the signal.

I would appreciate if you helped me.

from Susumu Yoshida(susumu yt com)
Powered by Red Hat Linux

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