1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update QQt Word

This commit is contained in:
AbelTian 2018-07-26 15:37:59 +08:00
parent f1124112bf
commit cd846d146e

View File

@ -1,4 +1,4 @@
#ifndef QQTWORD_H #ifndef QQTWORD_H
#define QQTWORD_H #define QQTWORD_H
#include <QObject> #include <QObject>
@ -19,6 +19,29 @@ enum ESpanFlag
Q_DECLARE_FLAGS ( ESpanFlags, ESpanFlag ) Q_DECLARE_FLAGS ( ESpanFlags, ESpanFlag )
/**
* @brief The QQtWord class
*
* 使GraphicScene实现,GraphicView Printer Image等绘图设备.
*
*
* ,
* , , .
* ,
* Widget,
*
* DPI,.
* Rect1 : DPI1 = Rect2 : DPI2
* Scene()render(),rect.
* Rect的像素 DPI
* Scene 2480*3508(A4) 300 300
* DWin屏幕(View) 800*600 136(x) 156(y) 142 138
* PC屏幕(View) 1920*1080 96 96
* Printer 9917*14033 1200
*
* Scene可以设置纸张类型, A3 DPI不变 SceneRect会变.Rect像素大小,PS.
*
*/
class QQTSHARED_EXPORT QQtWord : public QObject class QQTSHARED_EXPORT QQtWord : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -57,7 +80,7 @@ public:
void setFooterText ( const QString& text, QFont m_font = QFont(), void setFooterText ( const QString& text, QFont m_font = QFont(),
Qt::Alignment align = Qt::AlignHCenter ); Qt::Alignment align = Qt::AlignHCenter );
/** /**
* @brief initWordExpress * @brief initWord
*/ */
void initWord(); void initWord();