QScrollArea is a QFrame descendant. If you set the frame shape to QFrame::NoFrame
QScrollArea是派生于QFrame,如果设置QFrame的FrameShape值为NoFrame那么就可以实现边框去除
一、C++源码实现
setFrameShape(QFrame::NoFrame);
设置QScrollArea的属性值为NoFrame即可
QScrollArea is a QFrame descendant. If you set the frame shape to QFrame::NoFrame
QScrollArea是派生于QFrame,如果设置QFrame的FrameShape值为NoFrame那么就可以实现边框去除
一、C++源码实现
setFrameShape(QFrame::NoFrame);