Open ChinaIceF opened 1 month ago
SiWidget
SiLabel
widthChanged
heightChanged
sizeChanged
resizeEvent
event.oldSize()
event.size()
adjustSize
SiWidget
和SiLabel
中引入新的信号widthChanged
heightChanged
sizeChanged
,在resizeEvent
事件中被发射,且当且仅当event.oldSize()
!=event.size()
时发射widthChanged
或heightChanged
信号连接到自己的adjustSize
方法上,从而自动地在必要的时候调整大小adjustSize
方法