diff options
Diffstat (limited to 'examples/widgets/tools/styleplugin/stylewindow/main.cpp')
-rw-r--r-- | examples/widgets/tools/styleplugin/stylewindow/main.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/widgets/tools/styleplugin/stylewindow/main.cpp b/examples/widgets/tools/styleplugin/stylewindow/main.cpp deleted file mode 100644 index 0b0a295410..0000000000 --- a/examples/widgets/tools/styleplugin/stylewindow/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#include <QApplication> -#include <QStyleFactory> - -#include "stylewindow.h" - -//! [0] -int main(int argv, char *args[]) -{ - QApplication app(argv, args); - - QStyle *style = QStyleFactory::create("simplestyle"); - if (!style) - qFatal("Cannot load the 'simplestyle' plugin."); - - QApplication::setStyle(style); - - StyleWindow window; - window.resize(350, 50); - window.show(); - - return app.exec(); -} -//! [0] |