summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/doc/src/snippets/code/src_gui_image_qpixmap.cpp
blob: b76c7d3a5aa349cd981eaf1089ab2d8f38133046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! [0]
static const char * const start_xpm[]={
    "16 15 8 1",
    "a c #cec6bd",
....
//! [0]


//! [1]
myPixmap = QPixmap()
myPixmap.setMask(myPixmap.createHeuristicMask())
//! [1]

//! [2]
pixmap = QPixmap("background.png")
exposed = QRegion()
pixmap.scroll(10, 10, pixmap.rect(), exposed)
//! [2]