How to set callback for child widgets ?
Solved
General and Desktop
-
Hello, I would like to know how to define a callback for widgets present in a MainWindow. In my case, I would like to resize an image and position it in the center of an MdiSubWindow when the size change.
I know how to set a callback for the MainWindow, but I did not find how to set callbacks for another widgets.
edit :
I found a solution, i create a subclass of widget and i can set callbacks event. It's a good practice ?!Thanks for your help
-
Hello, thanks for your reply !
In time, I studied and tested a lot of things. Indeed, it was better for me to use a signal and a slot.
.I had trouble understanding that an event was different from a signal, but I understood how it worked.
Thank you very much for your answer.