07 2016 档案

摘要:QLabel.setAlignment (self, Qt.Alignment) 下面查看Qt.Alignment: Qt.AlignmentFlag This enum type is used to describe alignment. It contains horizontal and v 阅读全文
posted @ 2016-07-27 23:55 进撃の大鸟 阅读(4921) 评论(0) 推荐(0)
摘要:在label中添加pixmap来显示图片时,当图片过大时图片显示不全。 1.这时可以使用pixmap的scared()方法,来设置图片缩放。 QPixmap QPixmap.scaled (self, int w, int h, Qt.AspectRatioMode aspectMode = Qt. 阅读全文
posted @ 2016-07-27 23:37 进撃の大鸟 阅读(29813) 评论(0) 推荐(1)