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
7
8void wrapper0() {
9
10//! [1]
11QPixmap myPixmap;
12myPixmap.setMask(myPixmap.createHeuristicMask());
13//! [1]
14
15} // wrapper0
16
17
18void wrapper1() {
19
20//! [2]
21QPixmap pixmap("background.png");
22QRegion exposed;
23pixmap.scroll(10, 10, pixmap.rect(), &exposed);
24//! [2]
25
26} // wrapper1
27} // src_gui_image_qpixmap