Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
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#ifndef WINDOW_H
4#define WINDOW_H
5
6#include <QMainWindow>
7
8class QTextEdit;
9class QTextFrame;
10class QTextBlock;
11class QTextTable;
12
13QT_BEGIN_NAMESPACE
14
15class MainWindow : public QMainWindow
16{
17 Q_OBJECT
18
19public:
20 MainWindow();
21
22public slots:
23 void saveFile();
24 void showTable();
25
26private:
27 bool writeXml(const QString &fileName);
28 void processFrame(QTextFrame *);
29 void processBlock(QTextBlock);
30 void processTable(QTextTable *table);
31
32 QTextEdit *editor = nullptr;
33};
34
35QT_END_NAMESPACE
36
37#endif
int main(int argc, char *argv[])
[ctor_close]