[Solved] QPrintPreviewDialog doesn't allow to choose printer (Qt 5)
-
Qt versions: 5.1.1 (32 bit build) and 4.8.4 (32 bit build)
Os versions: Win8 x64 and WinXP SP3Porting application to Qt5. When I click "Print" button in preview dialog...
- In Qt4 - printer selection Dialog appears;
- In Qt5 - printing starts immediately on default printer. Also "Page setup" button is disabled in the preview dialog.
Tried to set printer name to an empty string. Tried to find an opion to enable printer selection. Any ideas?
-
Hi,
That sounds like a bug/regression, did you check the "bug report system":http://bugreports.qt-project.org to see whether it's known problem ?
If not, you could consider opening a new report providing a minimal compilable example that reproduce the problem
-
Hello, SGaist.
Finally I have found it isn't a bug but some non-obvious behavior of Qt. I just forgot to deploy printsupport\windowsprintersupport.dll and Qt automatically switched to internal pdf print engine (not my default foxit pdf printer as I thought). Now it looks like everything is ok.
-
Nice catch !
Plugins can be a little tricky in Qt 5