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
geometrytestutils.cpp
Go to the documentation of this file.
1
// Copyright (C) 2021 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
include
"geometrytestutils_p.h"
5
6
#
include
<
QQuickItem
>
7
8
QT_BEGIN_NAMESPACE
9
10
QSizeChangeListener
::
QSizeChangeListener
(
QQuickItem
*
item
) :
11
item
(
item
)
12
{
13
connect(item, &QQuickItem::widthChanged,
this
, &QSizeChangeListener::onSizeChanged);
14
connect(item, &QQuickItem::heightChanged,
this
, &QSizeChangeListener::onSizeChanged);
15
}
16
17
void
QSizeChangeListener
::onSizeChanged()
18
{
19
append(QSize(item->width(), item->height()));
20
}
21
22
QT_END_NAMESPACE
23
24
#
include
"moc_geometrytestutils_p.cpp"
QQuickItem
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition
qquickitem.h:63
QSizeChangeListener
Definition
geometrytestutils_p.h:28
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
item
QGraphicsItem * item
Definition
src_gui_graphicsview_qgraphicsitem.cpp:107
qtdeclarative
src
quicktestutils
quick
geometrytestutils.cpp
Generated on Thu Nov 14 2024 00:49:51 for Qt by
1.12.0