QPainter API.

Juaci
2006-01-10
2013-04-26
  • Juaci

    Juaci - 2006-01-10

    How can I pass the pointer QPainter class to the render function?  ( API report.)
    I created this way.
    QPainter paint;
    paint.begin( new QPicture() );
    report.render(&paint);
    paint.end();
    But this way, when I have a report with two pages, the OpenRPT generate just one page, the page 2 toguether with  the 1.
    What's wrong?

     
    • Chris Ryan

      Chris Ryan - 2006-01-11

      This is a shortcoming in the way the renderer handles multiple pages. The renderer was designed to take a QPainter reference without the QPrinter object but no design consideration was given to allow for handling multiple pages.

      We are in the process of trying to convert the code to Qt4. Once the code is ported and stable on the newer versions of Qt we are hoping to be able to reimplement the renderer to use the new functionality and address this issue as well as a few others.

       

Log in to post a comment.