QPainter抗锯齿

抗锯齿:
QPainter painter(this);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
painter.translate(0, 0);
//加载图片不能设置宽,高,否则通用出现拉伸
painter.drawPixmap(0, 0, QPixmap(":/datetime/icons/dcc_clock_black.svg"));

你可能感兴趣的:(Qt)