Do the Qt signals / slots correspond to the C ++ region?
Say I have the following classes: Home, Kitchen, Basement, Stove and Shelf.
class House {Kitchen kitchen, Cellar cellar;}; class Kitchen {Stove stove;}; class Cellar {Shelf shelf;};
Now I want to send a signal from the shelf to the basement to the stove in the kitchen. Is this the only way to do this by connecting the signal from the shelf to the basement and the slot from the kitchen to the stove, and then in the house connecting the basement and the kitchen? Or is there a way to do this directly?
I have a class that should interact with the user interface, and I wonder if I need to βproxyβ all the different signals / slots through intermediate classes. Or is it an indication of poor design?
source share