“A scroll area is used to display the contents of a child widget within a frame. If the widget exceeds the size of the frame, the view can provide scroll bars so that the entire area of the child widget can be viewed. ”
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
只有 要顯示的部分>scollArea的時候 纔會用到srollArea