QWidget.render(QImage) maps one logical widget pixel to one target pixel regardless of screen DPR

Domain: frontend · Evidence E1 — Maintainer reviewed
qtpyside6qwidgetrenderdevicepixelratio

Summary

While debugging exact-pixel tests, setting the target QImage's devicePixelRatio to the widget's DPR (1.208) moved the rendering: the probed pixel contained the …

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons