summaryrefslogtreecommitdiffstats
path: root/doc/src/painting-and-printing
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-09-28 03:48:37 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-09-28 03:48:37 (GMT)
commite9d3fa89b4e34090eb9691412ad1caf6f323a006 (patch)
tree63082d09d321e929415a5410c10a1326fc5c2595 /doc/src/painting-and-printing
parent7b796b4dcdebfba55c4754d241edb334217fc550 (diff)
parente15561e88b6105f324e816add50bcde9a9a107d8 (diff)
downloadQt-e9d3fa89b4e34090eb9691412ad1caf6f323a006.zip
Qt-e9d3fa89b4e34090eb9691412ad1caf6f323a006.tar.gz
Qt-e9d3fa89b4e34090eb9691412ad1caf6f323a006.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Fix compile warnings (unused variables). Removing libconninet 3rdparty component. Closes properly the dbus connection in icd backend Connect/Disconnect requests needs to use the same dbus connection to ICD for the refcounting to work in ICD. Added my changes to the changelog. Clarified documentation of loadFinished() signal. Added a condition to skip obsolete functions during the threadness check. Doc: call qApp->precessEvents after QSplashScreen::showMessage Doc: Said that QApplication exits when not able to open X11 display Doc: maintainance - fixing grammar and spelling Doc: Added a note to qmake INSTALLS docs Doc: Fixing overlapping text problem in columns Doc: Added info on QWidget::render to printing docs Added default value documentation for two variables.
Diffstat (limited to 'doc/src/painting-and-printing')
-rw-r--r--doc/src/painting-and-printing/printing.qdoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/src/painting-and-printing/printing.qdoc b/doc/src/painting-and-printing/printing.qdoc
index 62c8192..97cd92f 100644
--- a/doc/src/painting-and-printing/printing.qdoc
+++ b/doc/src/painting-and-printing/printing.qdoc
@@ -136,6 +136,17 @@
used is constructed using the form of the constructor that accepts a
QPaintDevice argument.
+ \section1 Printing Widgets
+
+ To print a widget, you can use the QWidget::render() function. As mentioned,
+ the printer's resolution is usually higher than the screen resolution, so you
+ will have to scale the painter. You may also want to position the widget on the
+ page. The following code sample shows how this may look.
+
+ \snippet doc/src/snippets/widgetprinting.cpp 0
+
+ This will center the widget on the page and scale it so that it fits the page.
+
\section1 Printing from Complex Widgets
Certain widgets, such as QTextEdit and QGraphicsView, display rich content