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

📄 imgprocessor.h

📁 Linux窗口程序设计__Qt4精彩实例分析上面的源代码第二部分.以循序渐进的方式进行源代码,包括Qt4下面的图形与图画对话框QMainWindow的源代码.
💻 H
字号:
#ifndef IMGPROCESSOR_H#define IMGPROCESSOR_H#include <QtGui>class ImgProcessor : public QMainWindow	{    Q_OBJECTpublic:    ImgProcessor();    ~ImgProcessor();        void createMenus();    void createActions();    void createToolBars();private:    QImage img;    QLabel *imageLabel;        QMenu *fileMenu;    QMenu *zoomMenu;    QMenu *rotateMenu;    QMenu *mirrorMenu;    QAction *openFileAction;    QAction *zoomInAction;    QAction *zoomOutAction;    QAction *rotate90Action;    QAction *rotate180Action;    QAction *rotate270Action;    QAction *mirrorVerticalAction;    QAction *mirrorHorizontalAction;        QToolBar *fileTool;    QToolBar *zoomTool;      QToolBar *rotateTool;    QToolBar *mirrorTool;         protected slots:    void slotOpenFile();    void slotZoomIn();    void slotZoomOut();    void slotRotate90();    void slotRotate180();    void slotRotate270();    void slotMirrorVertical();    void slotMirrorHorizontal();};#endif

⌨️ 快捷键说明

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