blob: fd449057e65b4837daf4b3310bdc4c04a89febfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGridLayout>
#include <QGroupBox>
#include <QPushButton>
#include "stylewindow.h"
StyleWindow::StyleWindow()
{
QPushButton *styledButton = new QPushButton(tr("Big Red Button"));
QGridLayout *layout = new QGridLayout;
layout->addWidget(styledButton);
QGroupBox *styleBox = new QGroupBox(tr("A simple style button"));
styleBox->setLayout(layout);
QGridLayout *outerLayout = new QGridLayout;
outerLayout->addWidget(styleBox, 0, 0);
setLayout(outerLayout);
setWindowTitle(tr("Style Plugin Example"));
}
|