Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49560

Create QPrinter is very slow under Qt5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.0
    • GUI: Printing
    • None
    • MSWindows 7 64bits with Qt 5.5 community and MinGW 4.9.2 32bit

    Description

      Why under Qt 5.5 the creation of QPrint object is very slow:

      QElapsedTimer timer;
      timer.start();
      QPrinter printer;
      qint64 elapsed = timer.nsecsElapsed();
      qDebug() << "The operation took" << elapsed << "ns";
      

      Result:

      Qt4.8.7
      MSWindows 7 64bit (bin 32bit): The operation took 683 835637 ns
      (683 ms)

      Qt5.5
      MSWindows 7 64bit (bin 32bit): The operation took 2423 792254 ns (2423 ms)
      Ubuntu 14.04.3 LTS 64bits: The operation took 17 481614 ns (17 ms)

      Big difference with Linux system...

      https://forum.qt.io/topic/60815/create-qprinter-is-very-slow-under-qt5

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            cfdev1 Cyril
            Votes:
            14 Vote for this issue
            Watchers:
            17 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes