mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 09:15:23 +08:00
qt 6.5.1 original
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#include <QGridLayout>
|
||||
#include <QGroupBox>
|
||||
#include <QTextEdit>
|
||||
|
||||
#include "stylewindow.h"
|
||||
|
||||
StyleWindow::StyleWindow()
|
||||
{
|
||||
QTextEdit *styledTextEdit = new QTextEdit(tr("The quick brown fox jumps over the lazy dog"));
|
||||
|
||||
QGridLayout *layout = new QGridLayout;
|
||||
layout->addWidget(styledTextEdit);
|
||||
|
||||
QGroupBox *styleBox = new QGroupBox(tr("A simple styled text edit"));
|
||||
styleBox->setLayout(layout);
|
||||
|
||||
QGridLayout *outerLayout = new QGridLayout;
|
||||
outerLayout->addWidget(styleBox, 0, 0);
|
||||
setLayout(outerLayout);
|
||||
|
||||
setWindowTitle(tr("Style Plugin Example"));
|
||||
}
|
Reference in New Issue
Block a user