event handling between classes
I have an issue involving event handling between classes.
I have a main class that creates a series of panels within a card layout. There are a few buttons that control movement through the cards.
One of the panels is created from an object created from another class. On this panel are a series of buttons.
I'd like to be able to click a button on this panel and move a different card (panel).
Is it possible to access the event handler in the main class from the panel with the button in question created from another class?
Or must I simply declare the buttons in the main class? (This would make the main class rather cumbersome.)