diff options
Diffstat (limited to 'tests/auto/quick/qquicktableview/data/zerosizedviewport.qml')
-rw-r--r-- | tests/auto/quick/qquicktableview/data/zerosizedviewport.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktableview/data/zerosizedviewport.qml b/tests/auto/quick/qquicktableview/data/zerosizedviewport.qml new file mode 100644 index 0000000000..f32c7bd3b2 --- /dev/null +++ b/tests/auto/quick/qquicktableview/data/zerosizedviewport.qml @@ -0,0 +1,31 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick +import QtQuick.Window + +Item { + width: 640 + height: 450 + + property alias tableView: tableView + + TableView { + id: tableView + anchors.top: parent.top + anchors.left: parent.left + anchors.bottom: parent.bottom + width: contentWidth + delegate: tableViewDelegate + } + + Component { + id: tableViewDelegate + Rectangle { + objectName: "tableViewDelegate" + implicitWidth: tableView.width + implicitHeight: 50 + } + } + +} |