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
11QT_BEGIN_NAMESPACE
12
13class QAction;
14class QTextDocument;
15class QTextEdit;
16
17class MainWindow : public QMainWindow
18{
20
21public:
23
24public slots:
25 void openFile();
26 void printFile();
27 void printPdf();
28 void updateMenus();
29
30private:
31 QAction *printAction = nullptr;
32 QAction *pdfPrintAction = nullptr;
33 QString currentFile;
34 QTextEdit *editor = nullptr;
35 QTextDocument *document = nullptr;
36};
37
38QT_END_NAMESPACE
39
40#endif
void printFile()
void printPdf()
void updateMenus()
int main(int argc, char *argv[])
[ctor_close]