Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_image_qpixmap.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
#
include
<
QBitmap
>
4
#
include
<
QPixmap
>
5
6
namespace
src_gui_image_qpixmap
{
7
8
void
wrapper0
() {
9
10
//! [1]
11
QPixmap myPixmap;
12
myPixmap.setMask(myPixmap.createHeuristicMask());
13
//! [1]
14
15
}
// wrapper0
16
17
18
void
wrapper1
() {
19
20
//! [2]
21
QPixmap pixmap(
"background.png"
);
22
QRegion exposed;
23
pixmap.scroll(10, 10, pixmap.rect(), &exposed);
24
//! [2]
25
26
}
// wrapper1
27
}
// src_gui_image_qpixmap
src_gui_image_qpixmap
Definition
src_gui_image_qpixmap.cpp:6
src_gui_image_qpixmap::wrapper0
void wrapper0()
Definition
src_gui_image_qpixmap.cpp:8
src_gui_image_qpixmap::wrapper1
void wrapper1()
Definition
src_gui_image_qpixmap.cpp:18
qtbase
src
gui
doc
snippets
code
src_gui_image_qpixmap.cpp
Generated on
for Qt by
1.14.0