Qt
6.x
The Qt SDK
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
8
class
QTextEdit
;
9
class
QTextFrame
;
10
class
QTextBlock
;
11
class
QTextTable
;
12
13
class
MainWindow
:
public
QMainWindow
14
{
15
Q_OBJECT
16
17
public
:
18
MainWindow
();
19
20
public
slots
:
21
void
saveFile
();
22
void
showTable
();
23
24
private
:
25
bool
writeXml(
const
QString
&
fileName
);
26
void
processFrame(
QTextFrame
*);
27
void
processBlock(
QTextBlock
);
28
void
processTable(
QTextTable
*
table
);
29
30
QTextEdit
*editor =
nullptr
;
31
};
32
33
#endif
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::MainWindow
MainWindow()
MainWindow::saveFile
void saveFile()
MainWindow::showTable
void showTable()
Definition
mainwindow.cpp:110
QMainWindow
The QMainWindow class provides a main application window.
Definition
qmainwindow.h:25
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QTextBlock
\reentrant
Definition
qtextobject.h:157
QTextEdit
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition
qtextedit.h:27
QTextFrame
\reentrant
Definition
qtextobject.h:81
QTextTable
\reentrant
Definition
qtexttable.h:63
table
GLenum GLenum GLsizei void * table
Definition
qopenglext.h:2745
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
slots
#define slots
Definition
qtmetamacros.h:40
fileName
fileName
[0]
Definition
src_gui_dialogs_qfiledialog.cpp:5
qtbase
src
gui
doc
snippets
textdocument-tables
mainwindow.h
Generated by
1.9.7