Qt 6.x
The Qt SDK
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
5QRect r1(100, 200, 11, 16);
6QRect r2(QPoint(100, 200), QSize(11, 16));
8
9
11QRectF r1(100.0, 200.1, 11.2, 16.3);
12QRectF r2(QPointF(100.0, 200.1), QSizeF(11.2, 16.3));
14
16QRect r = {15, 51, 42, 24};
17r = r.transposed(); // r == {15, 51, 24, 42}
19
21QRectF r = {1.5, 5.1, 4.2, 2.4};
22r = r.transposed(); // r == {1.5, 5.1, 2.4, 4.2}
\inmodule QtCore\reentrant
Definition qpoint.h:214
\inmodule QtCore\reentrant
Definition qpoint.h:23
\inmodule QtCore\reentrant
Definition qrect.h:483
constexpr QRectF transposed() const noexcept
Definition qrect.h:756
\inmodule QtCore\reentrant
Definition qrect.h:30
constexpr QRect transposed() const noexcept
Definition qrect.h:266
\inmodule QtCore
Definition qsize.h:207
\inmodule QtCore
Definition qsize.h:25
GLboolean r
[2]
QRect r1(100, 200, 11, 16)
[0]
QRect r2(QPoint(100, 200), QSize(11, 16))