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

📄 showimg.h.bak

📁 这是一个自己开发的键盘驱动代码
💻 BAK
字号:
/****************************************************************************** $Id: qt/showimg.h   3.3.6   edited Aug 31 2005 $**** Copyright (C) 1992-2005 Trolltech AS.  All rights reserved.**** This file is part of an example program for Qt.  This example** program may be used, distributed and modified without limitation.*******************************************************************************/#ifndef SHOWIMG_H#define SHOWIMG_H#include <qwidget.h>#include <qimage.h>#include <qsplitter.h>class QLabel;class QPoint;class ImageViewer : public QWidget{    Q_OBJECTpublic:    ImageViewer( QWidget *parent=0, const char *name=0, int wFlags=0 );    ~ImageViewer();    bool	loadImage( const QString& );signals:    void clicked();    public slots:		void fullScreen();		void toggleFullScreen();		void normalView();		protected:    void	paintEvent( QPaintEvent * );    void	resizeEvent( QResizeEvent * );    void 	mouseReleaseEvent(QMouseEvent* event);private:    void	scale();    int		conversion_flags;    int		alloc_context;    QString filename;    QImage	image;			// the loaded image    QPixmap	pm;			// the converted pixmap    QPixmap	pmScaled, pmScaledBackup,pmFullScreen;		// the scaled pixmap    QLabel *status;    QPoint oriPoint;        void updateStatus();        bool 	reconvertImage();    bool	may_be_other;    static ImageViewer* other;        bool isFullScreen, screenToggled, newImage;    QSplitter *pwidget;    QSize oriSize;};#endif // SHOWIMG_H

⌨️ 快捷键说明

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