To big PixMap? QPainter::begin: Paint device returned engine == 0, type: 2
<p>I tried to do:</p>

<pre><code>double mm1 = 1200/2.54;

    double zoom=mm1;
    double szer=99;
    double wys=210;

    QPixmap pixmap(szer*zoom,wys*zoom);
    QPainter painter;
    QPen DarkGray(Qt::gray,1);
</code></pre>

<p>and become error:
 QPainter::begin: Paint device returned engine == 0, type: 2</p>

<p>Is my pixmap to big? What to do?</p>