Fixed stretch mode and connect signals.
Modified mainwindow.ui