推薦字體"Source Code Pro"
英文和數字正好是中文的一半寬。
而且字體很和諧,不像有的等寬字體字母特別寬。
self.verticalLayoutWidget.setFont(QFont("Source Code Pro",9))
運行效果圖:
我就是通過計算寬度達到的效果。
喜歡的點個贊❤吧!
推薦字體"Source Code Pro"
英文和數字正好是中文的一半寬。
而且字體很和諧,不像有的等寬字體字母特別寬。
self.verticalLayoutWidget.setFont(QFont("Source Code Pro",9))
運行效果圖:
我就是通過計算寬度達到的效果。
喜歡的點個贊❤吧!
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta