DtkWidget
DTK Widget module
|
The watermark class will cover the set parent interface and dynamically adjust the size following the parent interface. parent 更多...
Public 成员函数 | |
DWaterMarkWidget (QWidget *parent=nullptr) | |
const WaterMarkData & | data () |
get the current setting | |
void | setData (const WaterMarkData &data) |
set the current setting data | |
Protected 成员函数 | |
void | paintEvent (QPaintEvent *) override |
bool | eventFilter (QObject *watched, QEvent *event) override |
The watermark class will cover the set parent interface and dynamically adjust the size following the parent interface. parent
水印类,将覆盖设置的父界面,并跟随父界面动态调整大小
\inmodule dtkwidget
@inmodule dtkwidget
[in] | parent |
const WaterMarkData & DWaterMarkWidget::data | ( | ) |
get the current setting
当前设置的水印信息
void DWaterMarkWidget::setData | ( | const WaterMarkData & | data | ) |
set the current setting data
设置当前水印信息
[in] | data | 需要设置的水印信息 |