Not really a MainWindow in the sense of toolbars and all. For qml it's just the drop area, acepting drops
41 lines
984 B
C++
41 lines
984 B
C++
/*
|
|
This file is part of KDDockWidgets.
|
|
|
|
SPDX-FileCopyrightText: 2019-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
|
Author: Sérgio 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.
|
|
*/
|
|
|
|
#include "MyWidget.h"
|
|
#include "MyMainWindow.h"
|
|
#include "MyFrameworkWidgetFactory.h"
|
|
|
|
#include <kddockwidgets/Config.h>
|
|
|
|
#include <QStyleFactory>
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
#include <QCommandLineParser>
|
|
|
|
using namespace KDDockWidgets;
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
|
QApplication app(argc, argv);
|
|
|
|
DockWidget *dw = new DockWidget(QStringLiteral("foo"));
|
|
dw->show();
|
|
|
|
DockWidget *dw2 = new DockWidget(QStringLiteral("foo2"));
|
|
dw2->show();
|
|
|
|
dw->addDockWidgetAsTab(dw2);
|
|
|
|
return app.exec();
|
|
}
|