Page 1 of 1

scaledToWidth scaledToHeight Documentation

Posted: Fri Sep 23 2022 4:08 pm
by seasoned_geek
When visiting here

https://www.copperspice.com/docs/cs_api/class_qpixmap.html#a770dae6f92c58c409a682424ca5aabf5

The documentation just uses an int for height and width but doesn't list units. Yes, one could theoretically assume pixels, but one could also assume inches or centimeters if they are scaling for printed output.

pageRect actually names a unit

https://www.copperspice.com/docs/cs_api/class_qprinter.html#ac5bdf4b8b3d57439b21bf3a371c15cba