I'am trying some tutorials with Glade and GTKmm. For now I have a Main Window with a Toolbar. This is my Main Menu. Every Toolbarbutton should trigger the "show" and "hide" option of a widget. In this case I have a widget called Overview. So, how do I connect the Toolbarbutton signal to a function (Slot) of the overview widget?
Asked
Active
Viewed 100 times
1 Answers
0
Just connect a signal:
tbtnOverview->signal_clicked().connect(wndOverview, &Overview::Method_To_Fire);

Mark
- 106,305
- 20
- 172
- 230
-
Hi, I don't know where. If I put it into the constructor of the main window, it will not work because the object wndOverview does not exist yet. – Fat Noodle Mar 01 '13 at 21:00
-
Why can't you do it right after `guiOverview->get_widget_derived("wndOverview",wndOverview);`? – Mark Mar 01 '13 at 22:57