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
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:217
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:484
constexpr QRectF transposed() const noexcept
Definition qrect.h:770
\inmodule QtCore\reentrant
Definition qrect.h:30
constexpr QRect transposed() const noexcept
Definition qrect.h:267
\inmodule QtCore
Definition qsize.h:208
\inmodule QtCore
Definition qsize.h:25
GLboolean r
[2]
QRect r1(100, 200, 11, 16)
[0]
QRect r2(QPoint(100, 200), QSize(11, 16))