Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QtPrintSupport.dll dependency
QtWS25 Last Chance

[SOLVED] QtPrintSupport.dll dependency

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 4.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WoldemarShiPa
    wrote on last edited by
    #1

    Hello. My app doesn't run without qtprintsupport.dll but this module not included. List of included modules: Core, GUI, Network, Svg, Widgets, XML. Is it possibly to avoid calling that dll? Thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you doing any printing stuff ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        WoldemarShiPa
        wrote on last edited by
        #3

        No, just rendering and saving screenshots as png and svg images

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          For the rendering from screen, are you using QPixmap or something else?

          1 Reply Last reply
          0
          • W Offline
            W Offline
            WoldemarShiPa
            wrote on last edited by
            #5

            QPixmap, yes

            1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Hmmm, are you asking for any logicalDpiX or Y? Or perhaps the physicalDpiX or Y? I seem to remember on Windows this can call the spooler subsystem, i.e. printer stuff.
              Note: this is a long shot guess :-)

              1 Reply Last reply
              0
              • W Offline
                W Offline
                WoldemarShiPa
                wrote on last edited by
                #7

                System is Win7 x86. Here QPixmap-related code:
                @void ImageSaver::renderGraphs(QList<QwtPlot *> listGraphs, QPainter &painter)
                {
                int y = 0;
                QwtPlotRenderer renderer;
                for (int i=listGraphs.count()-1; i>=0; i--)
                {
                QPixmap temp_pixmap = QPixmap(listGraphs[i]->size());
                QPainter temp_painter(&temp_pixmap);
                renderer.setDiscardFlags(QwtPlotRenderer::DiscardBackground | QwtPlotRenderer::DiscardCanvasBackground);
                renderer.render(listGraphs[i],&temp_painter,listGraphs[i]->rect());
                painter.drawPixmap(0,y,temp_pixmap);
                y += temp_pixmap.height();
                }
                }@

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  WoldemarShiPa
                  wrote on last edited by
                  #8

                  I used Dependency Walker and determined that Qt5PrintSupport.dll called from qwt.dll (I use Qwt library).

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    WoldemarShiPa
                    wrote on last edited by
                    #9

                    Thanks to everybody for cooperation

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      That was the important detail ! :)

                      You're welcome !

                      Now that you have found out please update the thread title prepending [solved] so other forum users may know a solution has been found :)

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved