Hi,
For all members of our sports club I have a nice page (see attachment) which I can print that contains their contact information, a picture, graduation data, payment data, etc...
Right now I create these pages using a desktop publishing application, and maintain a page for each member. This takes a lot of time, so I want to put the data in a database and print the pages using a Qt application.
I know how to get everything from my database, and know how to print simple pages. I am seeking advice on how to handle such a complex page. I see several options :
1) do all the painting myself on a QPainter. This gives me the most control, but requires me to program every line and rectangle on the page, which takes a lot tweeking before you get it right. Also it would take a lot of time and possibly rework if I would ever need to rearrange the elements, e.g. to make room for new data.
2) create a richt text document with placeholders for the data, fill in the data, and print this document. I doubt that a rich text document can handle different elements that are arranged anywhere on a page, and all the borders and other graphical elements.
3) create a html document and read this. I believe I still have to use a QTextDocument to read the HTML, and not all HTML features will be supported.
4) create a .ODT file and read this. Same as above ?
5) draw an SVG image with all the graphical elements of the page. Then read this image, paint it on a QPainter, and paint all the data on top of it. Then I just have to fiddle around until I get all the data elements at the right position. Or maybe I can put placeholders in the SVG image and replace them with the correct data ?
Any advice ?
Thanks in advance,
Marc
Bookmarks