I set the printInWidget clicked method for the btnprint button in widget1. But I want to replace that command in MainWindow with command prin
printInWidget
btnprint
prin