Re: Printing a file
- From: "David Boddie" <davidb@xxxxxxxxxxxxxxxx>
- Date: 28 Feb 2006 03:48:41 -0800
Jeremy Sanders wrote:
Fabian Steiner wrote:
Unfortunately I don't know how to realize this, since also some images
and different boxes should be printed out. As the whole application is
based on QT, QPrinter might be used, but I couldn't find any examples
how to use it.
[...]
It's very easy to do. If you want to handle multiple pages and so on,
there's a bit of work to do to interface to the dialog to get the
user-selected page range, etc.
That's where QPrintDialog comes in:
http://doc.trolltech.com/4.1/qprintdialog.html
It's also secretly available in Qt 3 via the QPrinter.setup() method:
printer = QPrinter()
printer.setup()
# Now, paint onto the printer as usual.
David
.
- References:
- Printing a file
- From: Fabian Steiner
- Re: Printing a file
- From: Jeremy Sanders
- Printing a file
- Prev by Date: Re: C++ OpenGL rendering, wxPython GUI?
- Next by Date: UK Python Conference - 19-20 April 2006
- Previous by thread: Re: Printing a file
- Next by thread: UK Python Conference - 19-20 April 2006
- Index(es):
Relevant Pages
|