linuxdeepin / qt5integration

Qt platform theme integration plugins for DDE.
Other
36 stars 47 forks source link

fix: svg/dci pixmap not clear when DPR > 1 #203

Closed kegechen closed 9 months ago

kegechen commented 11 months ago

QSvgIOHandler multiply final size by device pixel ratio and setDevicePixelRatio to make pixmap clear

QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QLabel label;
// /usr/share/dsg/icons/flow/3depict.dci
label.setPixmap(QPixmap("/usr/share/icons/bloom/apps/32/preferences-system.svg"));
label.show();
D_DXCB_DISABLE_OVERRIDE_HIDPI=1 QT_SCALE_FACTOR=1.25 ./test_pix
-platformpath /path/to/qt5integratoin-plugins-path
deepin-ci-robot commented 11 months ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kegechen

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[debian/deepin/OWNERS](https://github.com/linuxdeepin/qt5integration/blob/master/debian/deepin/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
kegechen commented 11 months ago

image image image

--------分割线--------

image image image

kegechen commented 11 months ago

尝试在 QImageReader 中修复 https://codereview.qt-project.org/c/qt/qtbase/+/515545

kegechen commented 10 months ago

尝试在 QImageReader 中修复 https://codereview.qt-project.org/c/qt/qtbase/+/515545

https://bugreports.qt.io/browse/QTBUG-119481 当前 API 不支持