抗锯齿:
QPainter painter(this);
painter.setRenderHint(QPainter::SmoothPixmapTransform);
painter.translate(0, 0);
//加载图片不能设置宽,高,否则通用出现拉伸
painter.drawPixmap(0, 0, QPixmap(":/datetime/icons/dcc_clock_black.svg"));
QPainter抗锯齿
最新推荐文章于 2024-04-10 19:36:42 发布