学习计划

可用信号
功能作用
1.创建QFrame对象

2.组合效果图

3.框架形状

应用场景
4.框架阴影

5.框架的几个线宽

6.框架样式

7.框架矩形

8.代码总览
from PyQt5.Qt import *
import sys
app = QApplication(sys.argv)
window = QWidget()
window.setWindowTitle("QFrame功能测试")
window.resize(500, 500)
frame = QFrame(window)
frame.resize(100, 100)
frame.move(100, 100)
frame.setStyleSheet("background-color: cyan;")
frame.setFrameStyle(QFrame.Box | QFrame.Raised)
frame.setLineWidth(10)
frame.setMidLineWidth(12)
print(frame.frameWidth())
frame.setFrameRect(QRect(20, 20, 60, 60))
window.show()
sys.exit(app.exec_())