diff options
Diffstat (limited to 'tests/manual/inputdevices/main.cpp')
-rw-r--r-- | tests/manual/inputdevices/main.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/manual/inputdevices/main.cpp b/tests/manual/inputdevices/main.cpp new file mode 100644 index 0000000000..2857fd0fb6 --- /dev/null +++ b/tests/manual/inputdevices/main.cpp @@ -0,0 +1,24 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#include <QApplication> +#include <QLoggingCategory> +#include <QTreeView> + +#include "inputdevicemodel.h" + +int main(int argc, char **argv) +{ + QLoggingCategory::setFilterRules(QStringLiteral("qt.qpa.input.devices=true")); + + QApplication app(argc, argv); + + QTreeView view; + view.setModel(new InputDeviceModel(&view)); + view.resize(1280, 600); + view.show(); + view.resizeColumnToContents(0); + + app.exec(); +} + |