Print Preview features fails on Windows 10
Unsolved
General and Desktop
-
@NIXIN
OK, I built your sample and got it working without any errors.
You have a couple of issues with that code but I guess they are just typos.Ui::TestDialog ui; needs to be a pointer -> Ui::TestDialog *ui;
QPrintPreviewWidget printPreviewWidget; needs to be a pointer -> QPrintPreviewWidget *printPreviewWidget; -
Hi,
Thanks for reverting back, but the errors which you pointed are pointers. I checked in my code, those are pointers.Actually I have directly copied and pasted the code to this editor, may be due to that some modifications had taken place.
However, What values of 'View Port Width' and 'View Port Height' you got??