📄 qprinter.h
字号:
#ifndef __QPRINTER_H#define __QPRINTER_H#include "fltk-qbase.h"#include "qpaintdevice.h"class QWidget;class QPrinter : public QPaintDevice{ public: enum PageSize { A4,B5,Letter,Legal,Executive }; enum Orientation { Portrait, Landscape }; bool setup(QWidget * parent = 0) { return true; } PageSize pageSize() const { return Letter; } Orientation orientation() const { return Portrait; } bool newPage() { return true; }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -