blob: 1061cd75065814de6f5dec460d8848735f11c900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
This example demonstrates how to read in and display images, and the
conversion facilities available. The CuteWidget can read a file into
a pixmap and resizes the displayed pixmap when the widget is resized.
Note that the function CuteWidget::paintEvent uses the drawPixmap function
of QPainter to display the pixmap, the bitBlt function can also be used to
display pixmaps.
If you have installed the TQt imageio extension (see extensions/imageio
in your TQt directory), you can build using that extension.
Some of the conversion options will have no effect, depending on the
display hardware used. Generally, these are disabled.
|