summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_image_qpixmap.cpp
blob: 822b4660840f75a592ab3bff860cec3b348a91fb (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]
QPixmap myPixmap;
myPixmap->setMask(myPixmap->createHeuristicMask());
//! [1]

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