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
4
#
ifndef
MAINWINDOW_H
5
#
define
MAINWINDOW_H
6
7
#
include
<
QHash
>
8
#
include
<
QMainWindow
>
9
#
include
<
QTextDocumentFragment
>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QAction;
14
class
QTextDocument;
15
class
QTextEdit;
16
17
class
MainWindow
:
public
QMainWindow
18
{
19
Q_OBJECT
20
21
public
:
22
MainWindow
();
23
24
public
slots
:
25
void
openFile
();
26
void
printFile
();
27
void
printPdf
();
28
void
updateMenus
();
29
30
private
:
31
QAction *printAction =
nullptr
;
32
QAction *pdfPrintAction =
nullptr
;
33
QString currentFile;
34
QTextEdit *editor =
nullptr
;
35
QTextDocument *document =
nullptr
;
36
};
37
38
QT_END_NAMESPACE
39
40
#
endif
MainWindow
[6]
Definition
src_corelib_kernel_qmetaobject.cpp:74
MainWindow::printFile
void printFile()
Definition
mainwindow.cpp:69
MainWindow::printPdf
void printPdf()
Definition
mainwindow.cpp:83
MainWindow::updateMenus
void updateMenus()
Definition
mainwindow.cpp:156
main
int main(int argc, char *argv[])
[ctor_close]
Definition
src_corelib_animation_qpropertyanimation.cpp:100
qtbase
src
gui
doc
snippets
textdocument-printing
mainwindow.h
Generated on
for Qt by
1.14.0