PDA

View Full Version : Using QLabels and QT Layout Classes for Printing



ChrisW67
8th April 2009, 10:45
G'day All,

I'm looking at ways of providing a more flexible way of getting tabular content onto the printed page akin to the way that widgets can be positioned on screen. It seems from reading the docs that a QWidget or QFrame containing mostly QLabels of fixed dimensions should be printable by painting on to a QPrinter. This should allow use of QGridLayout and all the column and row spanning that allows. A custom widget could allow more flexible borders on the cells.

Does this approach seem reasonable or am I asking for headaches?

Cheers,
Chris