QPrintDialog does not work
-
When the OS is not installed printer, QPrintDialog does not appear. Why?
QPrintDialog should appear with one printer - "Install printer", and whit disabled button "Ok".ps OS Windows XP SP3, Qt5.4.0
-
@mcosta said:
Is a Feature request or is written is some docs?
No. I think it is obvious. If is not printer, QPrintDialog does not appear. Why? And does not appear MessageBox with massege about it.
Try to print page from IE without printers. Try to print picture from Paintbrush. Print dialog does appear with one printer "Add printer", like this link text or like this link text
And then try to print some text from TextEdit (run QDemo or build from QtCreator example). Why print dialog does not appear in TextEdit? User will be think, that program does not work. -
@mcosta said:
Is a Feature request or is written is some docs?
No. I think it is obvious. If is not printer, QPrintDialog does not appear. Why? And does not appear MessageBox with massege about it.
Try to print page from IE without printers. Try to print picture from Paintbrush. Print dialog does appear with one printer "Add printer", like this link text or like this link text
And then try to print some text from TextEdit (run QDemo or build from QtCreator example). Why print dialog does not appear in TextEdit? User will be think, that program does not work.@juvf said:
No. I think it is obvious.
Sorry but I don't agree; could be obvious only IF the user has admin privileges and could add a Printer to the system (wrong practice in Windows world).
BTW, Qt is a cross-platform toolkit and there's no cross-platform way to add a Printer to a system (Windows, OSX and Linux use different way to do that).
-
@juvf said:
No. I think it is obvious.
Sorry but I don't agree; could be obvious only IF the user has admin privileges and could add a Printer to the system (wrong practice in Windows world).
BTW, Qt is a cross-platform toolkit and there's no cross-platform way to add a Printer to a system (Windows, OSX and Linux use different way to do that).
dasdfas
@mcosta said:
BTW, Qt is a cross-platform toolkit and there's no cross-platform way to add a Printer to a system (Windows, OSX and Linux use different way to do that).
Ok. i argree. But why does not occur when user push button "Print" in the TextEditor from QtDemo? Button wokrs, nor any response to pressing. Users think that programm dosen't work.
I want, that user of my program known, that my program works, there is no installed printer and user have to install some printer.
How to verify that printer is not installed in OS, befor call QPrintDialog? -
QPrinterInfo::availablePrinters()
returns the list of installed printers.or, for performance reason, use
QPrinterInfo::availablePrinterNames()