關於QScrollArea

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章