📄 window.h
字号:
#ifndef WINDOW_H
#define WINDOW_H
#include <iostream>
#include "picture.h"
#include<QWidget>
#include <QKeyEvent>
class Dir;
class QPushButton;
class window: public QWidget
{
Q_OBJECT
public:
//QKeyEvent *press;
QPushButton *next;
QPushButton *prev;
picture *pic;
protected:
void keyPressEvent(QKeyEvent *event);
public:
void zoomin();
void zoomout();
window(QWidget *parent=0);
public slots:
void prevpicture();
void nextpicture();
};
#endif // WINDOW_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -