[qt] port the scrollbar fix to qt5 and add documentation.