Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mainwindow.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef WINDOW_H
5#define WINDOW_H
6
7#include <QMainWindow>
8
9class QTextDocument;
10class QTextEdit;
11
12class MainWindow : public QMainWindow
13{
15
16public:
18
19public slots:
20 void insertList();
21
22private:
23 QString currentFile;
24 QTextEdit *editor = nullptr;
25 QTextDocument *document = nullptr;
26};
27
28#endif
void insertList()
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition qtextedit.h:27
#define Q_OBJECT
#define slots