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

QPrinter with QtWebengine is created with High Resolution it freezes application for a while.

    XMLWordPrintable

Details

    • I30633380b75acd14f1a1df87985c99540168a9f1

    Description

      With QtWebenine if QPrinter is created with QPrinter::HighResolution this freezes the application for some time. Other than HighResolution it works good.

       

      This can be easily reproduced with Qt's Demo browser example with one line change

       

      
      void BrowserMainWindow::printRequested(QWebEnginePage *page)
      {
          if (m_currentPrinter)
              return;
       -   m_currentPrinter = new QPrinter();
       +   m_currentPrinter = new QPrinter(QPrinter::HighResolution); 
      
          QScopedPointer<QPrintDialog> dialog(new QPrintDialog(m_currentPrinter, this));
          dialog->setWindowTitle(tr("Print Document"));
          if (dialog->exec() != QDialog::Accepted) {
              slotHandlePagePrinted(false);
              return;
          }
          page->print(m_currentPrinter, invoke(this, &BrowserMainWindow::slotHandlePagePrinted));
      }

       

      Attachments

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

        Activity

          People

            davidsz Szabolcs David
            irfan.omair@digia.com Irfan Omair
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes