⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 study.h

📁 压缩包里有教材<<C++模式设计-基于QT4开源跨平台开发框架>>所有源码
💻 H
字号:
#ifndef STUDY_H#define STUDY_H#include <QMainWindow>class QAction;class QActionGroup;/**  Demo of QActions and QActionGroups  S. Alan Ezust (alan dot ezust at gmail dot com )  *///startclass Study : public QMainWindow {    Q_OBJECTpublic:    Study();public slots:    void actionEvent(QAction* act);private:    QActionGroup* actionGroup; /* for catching the signals */    QToolBar *toolbar;  /* for displaying the actions as buttons */    QAction *useTheForce;        QAction *useTheDarkSide;    QAction *studyWithObiWan;    QAction *studyWithYoda;    QAction *studyWithEmperor;    QAction *fightYoda;    QAction *fightDarthVader;    QAction *fightObiWan;    QAction *fightEmperor;protected:    /**       Adds a new QAction to a toolbar and returns it.       */    QAction* addChoice(QString name, QString text);};//end#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -