[SOLVED] QtPrintSupport.dll dependency
-
wrote on 25 Mar 2014, 14:14 last edited by
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
-
Hi,
Are you doing any printing stuff ?
-
wrote on 26 Mar 2014, 06:14 last edited by
No, just rendering and saving screenshots as png and svg images
-
wrote on 26 Mar 2014, 16:05 last edited by
For the rendering from screen, are you using QPixmap or something else?
-
wrote on 27 Mar 2014, 07:00 last edited by
QPixmap, yes
-
wrote on 27 Mar 2014, 09:38 last edited by
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 :-) -
wrote on 28 Mar 2014, 06:19 last edited by
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();
}
}@ -
wrote on 28 Mar 2014, 06:26 last edited by
I used Dependency Walker and determined that Qt5PrintSupport.dll called from qwt.dll (I use Qwt library).
-
wrote on 28 Mar 2014, 06:31 last edited by
Thanks to everybody for cooperation
-
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 :)
1/10