How can I rotate tooltip contents to horizontal orientation from vertical?
remove the <p>..</p> tags from the html string.

Secondly, my thumbnails are going beyond screen display. How can I add scroll bars to it?
You cannot add scroll bars to ToolTips. If you need to restrict the popup and add scroll bars then you have go with QListWidget / QWidget / QFrame approach.