qtquick: Add an example of how to instantiate a dock widget from QML

Instead of using C++
This commit is contained in:
Sergio Martins
2020-12-03 14:58:59 +00:00
parent 6c1026956a
commit 16f6692b79
13 changed files with 206 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
/*
This file is part of KDDockWidgets.
SPDX-FileCopyrightText: 2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
Author: Sergio Martins <sergio.martins@kdab.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
Contact KDAB at <info@kdab.com> for commercial licensing options.
*/
import QtQuick 2.9
Rectangle {
id: root
color: "green"
anchors.fill: parent
}