Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.2, 5.4.0 Alpha
-
Windows
-
591bce8f6877ffb8e4ab81330ec077231eb2aab7
Description
Supported resolution list does not contain right values, count in the list is right but it contains duplicates instead of all the resolutions.
See the attached pictures.
#include "mainwindow.h" #include <QApplication> #include <QPrinter> #include <QPrinterInfo> #include <QDebug> int main(int argc, char *argv[]) { QApplication a(argc, argv); QList<QPrinterInfo> printers = QPrinterInfo::availablePrinters(); for(int i = 0; i < printers.size(); i++) { QList<int> infoDpi = printers.at(i).supportedResolutions(); for(int j = 0; j < infoDpi.count(); j++){ qDebug() << printers.at(i).printerName() << " " << infoDpi.at(j); } } return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-42007 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97443,2 | Get the correct available resolutions from the printer | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |