2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2014-11-07 14:57:25 +00:00
|
|
|
|
|
|
|
#include "nativewindowdump.h"
|
|
|
|
|
2021-09-17 14:07:10 +00:00
|
|
|
#include <QtGui/QGuiApplication>
|
|
|
|
#include <qpa/qplatformnativeinterface.h>
|
2017-12-14 13:15:34 +00:00
|
|
|
#include <QtCore/QDebug>
|
|
|
|
|
2014-11-07 14:57:25 +00:00
|
|
|
namespace QtDiag {
|
|
|
|
|
2017-12-14 13:15:34 +00:00
|
|
|
void dumpNativeWindows(WId wid)
|
2014-11-07 14:57:25 +00:00
|
|
|
{
|
2017-12-14 13:15:34 +00:00
|
|
|
QPlatformNativeInterface *ni = QGuiApplication::platformNativeInterface();
|
|
|
|
QString result;
|
|
|
|
QMetaObject::invokeMethod(ni, "dumpNativeWindows", Qt::DirectConnection,
|
|
|
|
Q_RETURN_ARG(QString, result),
|
|
|
|
Q_ARG(WId, wid));
|
|
|
|
qDebug().noquote() << result;
|
2014-11-07 14:57:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void dumpNativeQtTopLevels()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace QtDiag
|