Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_tools_qrect.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
5
QRect
r1
(100, 200, 11, 16);
6
QRect
r2
(
QPoint
(100, 200),
QSize
(11, 16));
8
9
11
QRectF
r1
(100.0, 200.1, 11.2, 16.3);
12
QRectF
r2
(
QPointF
(100.0, 200.1),
QSizeF
(11.2, 16.3));
14
16
QRect
r
= {15, 51, 42, 24};
17
r
=
r
.
transposed
();
// r == {15, 51, 24, 42}
19
21
QRectF
r
= {1.5, 5.1, 4.2, 2.4};
22
r
=
r
.
transposed
();
// r == {1.5, 5.1, 2.4, 4.2}
QPointF
\inmodule QtCore\reentrant
Definition
qpoint.h:217
QPoint
\inmodule QtCore\reentrant
Definition
qpoint.h:25
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:484
QRectF::transposed
constexpr QRectF transposed() const noexcept
Definition
qrect.h:770
QRect
\inmodule QtCore\reentrant
Definition
qrect.h:30
QRect::transposed
constexpr QRect transposed() const noexcept
Definition
qrect.h:267
QSizeF
\inmodule QtCore
Definition
qsize.h:208
QSize
\inmodule QtCore
Definition
qsize.h:25
r
GLboolean r
[2]
Definition
qopengles2ext.h:337
r1
QRect r1(100, 200, 11, 16)
[0]
r2
QRect r2(QPoint(100, 200), QSize(11, 16))
qtbase
src
corelib
doc
snippets
code
src_corelib_tools_qrect.cpp
Generated by
1.10.0