Adding a file menu entry and a toolbar
button for the print functionality is easy enough. We don't need
to have a separate printer setup and print dialog. We are going
to show the printing setup dialog every time a user wants to
print a document. Because we use one central
QPrinter object, settings remain valid
for the duration of the application. You might want to save the
printer settings to the configuration file (I haven't done that
here).