| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
#include <QApplication> |
| 5 |
#include <QHBoxLayout> |
| 6 |
|
| 7 |
#include "dragwidget.h" |
| 8 |
|
| 9 |
int main(int argc, char *argv[]) |
| 10 |
{ |
| 11 |
QApplication app(argc, argv); |
| 12 |
|
| 13 |
QWidget mainWidget; |
| 14 |
QHBoxLayout *horizontalLayout = new QHBoxLayout(&mainWidget); |
| 15 |
horizontalLayout->addWidget(new DragWidget); |
| 16 |
horizontalLayout->addWidget(new DragWidget); |
| 17 |
|
| 18 |
mainWidget.setWindowTitle(QObject::tr("Draggable Icons")); |
| 19 |
mainWidget.show(); |
| 20 |
|
| 21 |
return app.exec(); |
| 22 |
} |