I agree with Joh about connecting the scroll bars directly, but you might also try the following in your slot:
Qt Code:
  1. piano->viewport()->scroll(0,relative);
To copy to clipboard, switch view to plain text mode