| Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 2 | |
Hello, I considered portedcanvas example and print only lines from it. They are drawn as a set of bitmaps, not as lines at all. (see attachment). Best regards, Igor Grivko
Attachment:
Attachment:
ported_canvas_4_3.pdf
Attachment:
Attachment:
map_maker_4_3.pdf Attachment:
map_maker_4_3.ps Attachment:
map_maker_snapshot.png
Description: Adobe PDF document
Message 2 in thread
Igor Grivko wrote:
> Hello,
> I considered portedcanvas example and print only lines from it. They are
> drawn as a set of bitmaps, not as lines at all. (see attachment).
I don't quite understand; are you referring to the resolution, or aliasing?
Is this different in 4.3 from 4.2? Can you please show the code that
produces this output?
Andreas
--
[ signature omitted ]
Message 3 in thread
Hello Andreas,
All code you have already. Please, consider PORTEDCANVAS example (as I wrote
earlier) and then print lines from it.
This bug was already in Qt4.2 (Qt4.1 was free of it).
When are you planning to fix it?
Best regards,
Igor Grivko
29 ÐÐÑÑÐ 2007 12:01, Andreas Aardal Hanssen ÐÐÐÐÑÐÐ:
> Igor Grivko wrote:
> > Hello,
> > I considered portedcanvas example and print only lines from it. They are
> > drawn as a set of bitmaps, not as lines at all. (see attachment).
>
> I don't quite understand; are you referring to the resolution, or aliasing?
> Is this different in 4.3 from 4.2? Can you please show the code that
> produces this output?
>
> Andreas
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 4 in thread
Igor Grivko wrote:
> Hello Andreas,
> All code you have already. Please, consider PORTEDCANVAS example (as I
> wrote earlier) and then print lines from it.
> This bug was already in Qt4.2 (Qt4.1 was free of it).
> When are you planning to fix it?
There is no bitmap in the PDF you attached; it's vector graphics all the way
through.
Andreas
PS: There was no portedcanvas example in 4.1.
--
[ signature omitted ]
Message 5 in thread
Hi Andreas,
> PS: There was no portedcanvas example in 4.1.
There was no GraphicsView in Qt4.1 as well. Please, excuse my mistake, the
problem was in printing lines by QPainter, not only with GraphicsView. So I
said that this problem was not in Qt4.1.
Now it seems that this problem is fixed now.
But in application of my own I cannot print at all - it makes bad PS and bad
PDF. On your examples I cannot reproduce the problem. Could you very kindly
to look at PDF and PS files generated by my application?
Best regards,
Igor Grivko
29 ÐÐÑÑÐ 2007 12:45, Andreas Aardal Hanssen ÐÐÐÐÑÐÐ:
> Igor Grivko wrote:
> > Hello Andreas,
> > All code you have already. Please, consider PORTEDCANVAS example (as I
> > wrote earlier) and then print lines from it.
> > This bug was already in Qt4.2 (Qt4.1 was free of it).
> > When are you planning to fix it?
>
> There is no bitmap in the PDF you attached; it's vector graphics all the
> way through.
>
> Andreas
>
> PS: There was no portedcanvas example in 4.1.
Description: Adobe PDF document
Description: PostScript document
Description: PNG image
Message 6 in thread
Hello Grivko,
just this morning i reported a bug that might cover your problem.
If you use QPrinter printer(QPrinter::HighResolution) the scaling of Text is
totally wrong in the printed pdf. Using a default QPrinter is ok.
// QPrinter printer(QPrinter::HighResolution); // wrong
ÂÂÂÂÂÂÂÂQPrinter printer; // printout is ok
ÂÂÂÂÂÂÂÂQPrintDialog dialog(&printer, this);
ÂÂÂÂÂÂÂÂif (dialog.exec() == QDialog::Accepted) {
ÂÂÂÂÂÂÂÂ Â ÂQPainter painter(&printer);
ÂÂÂÂÂÂÂÂ Â Âgs->render(&painter);
...
hope it helps,
Dirk.
On Thursday 29 March 2007 12:11, Igor Grivko wrote:
> Hi Andreas,
>
> > PS: There was no portedcanvas example in 4.1.
>
> There was no GraphicsView in Qt4.1 as well. Please, excuse my mistake, the
> problem was in printing lines by QPainter, not only with GraphicsView. So I
> said that this problem was not in Qt4.1.
>
> Now it seems that this problem is fixed now.
>
> But in application of my own I cannot print at all - it makes bad PS and
> bad PDF. On your examples I cannot reproduce the problem. Could you very
> kindly to look at PDF and PS files generated by my application?
>
> Best regards,
> Igor Grivko
>
> 29 ÐÐÑÑÐ 2007 12:45, Andreas Aardal Hanssen ÐÐÐÐÑÐÐ:
> > Igor Grivko wrote:
> > > Hello Andreas,
> > > All code you have already. Please, consider PORTEDCANVAS example (as I
> > > wrote earlier) and then print lines from it.
> > > This bug was already in Qt4.2 (Qt4.1 was free of it).
> > > When are you planning to fix it?
> >
> > There is no bitmap in the PDF you attached; it's vector graphics all the
> > way through.
> >
> > Andreas
> >
> > PS: There was no portedcanvas example in 4.1.
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx
Message 7 in thread
Hi Dirk,
The problem was in printing through the GraphicsView, my code was the
following:
void MainWindow::filePrint()
{
if(!m_pPrinter )
{
m_pPrinter = new QPrinter;//(QPrinter::HighResolution);
}
QPrintDialog printDialog(m_pPrinter, this);
if (printDialog.exec() != QDialog::Accepted)
{
return;
}
QRectF rc = m_pScene->sceneRect();
QPoint startPoint = m_pView->mapFromScene(QPointF(rc.left(), rc.top()));
QPoint endPoint = m_pView->mapFromScene(QPointF(rc.right(), rc.bottom()));
QRect viewRect(startPoint.x(), startPoint.y(),
endPoint.x() - startPoint.x(),
endPoint.y() - startPoint.y());
QPainter pp(m_pPrinter);
m_pView->render(&pp, QRectF(10, 10, viewRect.width(), viewRect.height()),
viewRect);
}
It works all right in Qt 4.2, but in Qt 4.3 I've got a corrupted PDF or PS.
After replacing the last string by:
m_pView->render(&pp, viewRect, viewRect);
it works all right in Qt 4.3. May be some trolls look into this little
problem?
Best regards,
Igor Grivko
29 ÐÐÑÑÐ 2007 19:30, Dirk Schulz ÐÐÐÐÑÐÐ:
> Hello Grivko,
>
> just this morning i reported a bug that might cover your problem.
> If you use QPrinter printer(QPrinter::HighResolution) the scaling of Text
> is totally wrong in the printed pdf. Using a default QPrinter is ok.
>
> // QPrinter printer(QPrinter::HighResolution); // wrong
> ÂÂÂÂÂÂÂÂQPrinter printer; // printout is ok
> ÂÂÂÂÂÂÂÂQPrintDialog dialog(&printer, this);
> ÂÂÂÂÂÂÂÂif (dialog.exec() == QDialog::Accepted) {
> ÂÂÂÂÂÂÂÂ Â ÂQPainter painter(&printer);
> ÂÂÂÂÂÂÂÂ Â Âgs->render(&painter);
> ...
>
> hope it helps,
> Dirk.
>
To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx