mainwindow.h Example File | Qt 4.8 (original) (raw)
help/simpletextviewer/mainwindow.h
#ifndef MAINWINDOW_H #define MAINWINDOW_H
#include <QtGui/QMainWindow>
class Assistant; class TextEdit;
class MainWindow : public QMainWindow { Q_OBJECT
public: MainWindow(); void showDocumentation(const QString &file);
private slots: void about(); void showDocumentation(); void open();
protected: void closeEvent(QCloseEvent *event);
private: void createActions(); void createMenus();
Assistant *assistant;
TextEdit *textViewer;
[QMenu](qmenu.html) *fileMenu;
[QMenu](qmenu.html) *helpMenu;
[QAction](qaction.html) *assistantAct;
[QAction](qaction.html) *clearAct;
[QAction](qaction.html) *openAct;
[QAction](qaction.html) *exitAct;
[QAction](qaction.html) *aboutAct;
[QAction](qaction.html) *aboutQtAct;};
#endif
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.