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_painting_qregion_unix.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
<
QRegion
>
4
5
namespace
src_gui_painting_qregion_unix
{
6
7
void
wrapper
() {
8
//! [0]
9
QRegion r1(10, 10, 20, 20);
10
r1.isEmpty();
// false
11
12
QRegion r3;
13
r3.isEmpty();
// true
14
15
QRegion r2(40, 40, 20, 20);
16
r3 = r1.intersected(r2);
// r3: intersection of r1 and r2
17
r3.isEmpty();
// true
18
19
r3 = r1.united(r2);
// r3: union of r1 and r2
20
r3.isEmpty();
// false
21
//! [0]
22
23
}
// wrapper
24
}
// src_gui_painting_qregion_unix
src_gui_painting_qregion_unix
Definition
src_gui_painting_qregion_unix.cpp:5
src_gui_painting_qregion_unix::wrapper
void wrapper()
Definition
src_gui_painting_qregion_unix.cpp:7
qtbase
src
gui
doc
snippets
code
src_gui_painting_qregion_unix.cpp
Generated on
for Qt by
1.14.0