Files
qt-creator/src/plugins/helloworld/helloworldwindow.cpp

18 lines
497 B
C++
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
2008-12-02 12:01:29 +01:00
#include "helloworldwindow.h"
#include <QTextEdit>
#include <QVBoxLayout>
2008-12-02 15:08:31 +01:00
2008-12-02 12:01:29 +01:00
using namespace HelloWorld::Internal;
HelloWorldWindow::HelloWorldWindow(QWidget *parent)
2008-12-02 15:08:31 +01:00
: QWidget(parent)
2008-12-02 12:01:29 +01:00
{
auto layout = new QVBoxLayout(this);
layout->addWidget(new QTextEdit(tr("Focus me to activate my context!")));
2008-12-02 12:01:29 +01:00
setWindowTitle(tr("Hello, world!"));
}