zoom factor is not updated when zoom mode is set to FitInView and FitToWidth in QPdfView
-
QPdfView has a nice feature to fit pages to width or height with zoom mode(FitToWidth and FitInView). However, zoom factor is not updated after zoom mode is changed to FitInView and FitToWidth. Then, the old zoom factor is used when zoom mode is switched back to CustomZoom.
For example, at start-up, set zoom factor to 100% and zoom out to 50%.
Switch to FitToWidth. Zoom factor is still 50%. Then change zoom mode to CustomZoom and zoom out 50%, zoom factor changes to 0.5 * 0.5 = 0.25. I do not think this is right.Qt 5.15.3 and Ubuntu 22.04
-
QPdfView has a nice feature to fit pages to width or height with zoom mode(FitToWidth and FitInView). However, zoom factor is not updated after zoom mode is changed to FitInView and FitToWidth. Then, the old zoom factor is used when zoom mode is switched back to CustomZoom.
For example, at start-up, set zoom factor to 100% and zoom out to 50%.
Switch to FitToWidth. Zoom factor is still 50%. Then change zoom mode to CustomZoom and zoom out 50%, zoom factor changes to 0.5 * 0.5 = 0.25. I do not think this is right.Qt 5.15.3 and Ubuntu 22.04
-
Hi,
You might want to check with a more recent version of Qt. 5.15.11 has been released in October if you have. to stay with that series.Then you should open an issue about it.
Since you found the issue, you might want to submit a patch to fix it :-)
-
Hi,
You might want to check with a more recent version of Qt. 5.15.11 has been released in October if you have. to stay with that series.Then you should open an issue about it.
Since you found the issue, you might want to submit a patch to fix it :-)