Changing the size of TCanvas on the go (Run Time)

You can find the complete source code here: Root canvas in Qt5 revisited