更新代码

This commit is contained in:
feiyangqingyun
2021-09-13 16:13:49 +08:00
parent 08d29fb44c
commit 60486feb03
32 changed files with 259 additions and 387 deletions

View File

@@ -3,12 +3,12 @@
/** /**
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* 1. 图片转base64字符串 * 1. 图片转base64字符串
* 2. base64字符串转图片 * 2. base64字符串转图片
* 3. 字符转base64字符串 * 3. 字符转base64字符串
* 4. base64字符串转字符 * 4. base64字符串转字符
* 5. 后期增加数据压缩 * 5. 后期增加数据压缩
* 6. Qt6对base64编码转换进行了重写效率提升至少200% * 6. Qt6对base64编码转换进行了重写效率提升至少200%
*/ */
#include <QImage> #include <QImage>

View File

@@ -3,12 +3,12 @@
/** /**
* 电池电量控件 作者:feiyangqingyun(QQ:517216493) 2016-10-23 * 电池电量控件 作者:feiyangqingyun(QQ:517216493) 2016-10-23
* 1. 可设置电池电量,动态切换电池电量变化 * 1. 可设置电池电量动态切换电池电量变化
* 2. 可设置电池电量警戒值 * 2. 可设置电池电量警戒值
* 3. 可设置电池电量正常颜色和报警颜色 * 3. 可设置电池电量正常颜色和报警颜色
* 4. 可设置边框渐变颜色 * 4. 可设置边框渐变颜色
* 5. 可设置电量变化时每次移动的步长 * 5. 可设置电量变化时每次移动的步长
* 6. 可设置边框圆角角度/背景进度圆角角度/头部圆角角度 * 6. 可设置边框圆角角度背景进度圆角角度头部圆角角度
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,12 +3,12 @@
/** /**
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* 1. 图片转base64字符串 * 1. 图片转base64字符串
* 2. base64字符串转图片 * 2. base64字符串转图片
* 3. 字符转base64字符串 * 3. 字符转base64字符串
* 4. base64字符串转字符 * 4. base64字符串转字符
* 5. 后期增加数据压缩 * 5. 后期增加数据压缩
* 6. Qt6对base64编码转换进行了重写效率提升至少200% * 6. Qt6对base64编码转换进行了重写效率提升至少200%
*/ */
#include <QImage> #include <QImage>

View File

@@ -8,11 +8,11 @@
/** /**
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23 * 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
* 1. 可传入多种图形字体文件 * 1. 可传入多种图形字体文件
* 2. 可设置 QLabel+QAbstractButton 图形字体 * 2. 可设置 QLabel+QAbstractButton 图形字体
* 3. 可设置按钮图标 * 3. 可设置按钮图标
* 4. 可获取指定尺寸的图形字体图片 * 4. 可获取指定尺寸的图形字体图片
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色 * 5. 超级导航栏样式设置带图标和效果切换悬停颜色按下颜色选中颜色
*/ */
#ifdef quc #ifdef quc

View File

@@ -8,11 +8,11 @@
/** /**
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23 * 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
* 1. 可传入多种图形字体文件 * 1. 可传入多种图形字体文件
* 2. 可设置 QLabel+QAbstractButton 图形字体 * 2. 可设置 QLabel+QAbstractButton 图形字体
* 3. 可设置按钮图标 * 3. 可设置按钮图标
* 4. 可获取指定尺寸的图形字体图片 * 4. 可获取指定尺寸的图形字体图片
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色 * 5. 超级导航栏样式设置带图标和效果切换悬停颜色按下颜色选中颜色
*/ */
#ifdef quc #ifdef quc

View File

@@ -3,12 +3,12 @@
/** /**
* 设备按钮控件 作者:feiyangqingyun(QQ:517216493) 2018-7-2 * 设备按钮控件 作者:feiyangqingyun(QQ:517216493) 2018-7-2
* 1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2 * 1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2
* 2. 可设置按钮颜色 布防、撤防、报警、旁路、故障 * 2. 可设置按钮颜色 布防、撤防、报警、旁路、故障
* 3. 可设置报警切换 * 3. 可设置报警切换
* 4. 可设置显示的防区号 * 4. 可设置显示的防区号
* 5. 可设置是否可鼠标拖动 * 5. 可设置是否可鼠标拖动
* 6. 发出单击和双击信号 * 6. 发出单击和双击信号
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,10 +3,10 @@
/** /**
* 本地存储空间大小控件 作者:feiyangqingyun(QQ:517216493) 2016-11-30 * 本地存储空间大小控件 作者:feiyangqingyun(QQ:517216493) 2016-11-30
* 1. 可自动加载本地存储设备的总容量/已用容量 * 1. 可自动加载本地存储设备的总容量/已用容量
* 2. 进度条显示已用容量 * 2. 进度条显示已用容量
* 3. 支持所有操作系统 * 3. 支持所有操作系统
* 4. 增加U盘或者SD卡到达信号 * 4. 增加U盘或者SD卡到达信号
*/ */
#include <QTableWidget> #include <QTableWidget>

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -1,72 +1,37 @@
/* #ifndef BASE64_H
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) #define BASE64_H
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_BASE64_H
#define AVUTIL_BASE64_H
#include <stdint.h>
/** /**
* @defgroup lavu_base64 Base64 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* @ingroup lavu_crypto * 1. 图片转base64字符串。
* @{ * 2. base64字符串转图片。
* 3. 字符转base64字符串。
* 4. base64字符串转字符。
* 5. 后期增加数据压缩。
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
*/ */
/** #include <QImage>
* Decode a base64-encoded string.
*
* @param out buffer for decoded data
* @param in null-terminated input string
* @param out_size size in bytes of the out buffer, must be at
* least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
* @return number of bytes written, or a negative value in case of
* invalid input
*/
int av_base64_decode(uint8_t *out, const char *in, int out_size);
/** #ifdef quc
* Calculate the output size in bytes needed to decode a base64 string class Q_DECL_EXPORT Base64
* with length x to a data buffer. #else
*/ class Base64
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4) #endif
/** {
* Encode data to base64 and null-terminate. public:
* //图片转base64字符串
* @param out buffer for encoded data static QString imageToBase64(const QImage &image);
* @param out_size size in bytes of the out buffer (including the static QByteArray imageToBase64x(const QImage &image);
* null terminator), must be at least AV_BASE64_SIZE(in_size)
* @param in input buffer containing the data to encode
* @param in_size size in bytes of the in buffer
* @return out or NULL in case of error
*/
char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/** //base64字符串转图片
* Calculate the output size needed to base64-encode x bytes to a static QImage base64ToImage(const QString &data);
* null-terminated string. static QImage base64ToImagex(const QByteArray &data);
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
/** //字符串与base64互转
* @} static QString textToBase64(const QString &text);
*/ static QString base64ToText(const QString &text);
};
#endif /* AVUTIL_BASE64_H */ #endif // BASE64_H

View File

@@ -1,72 +1,37 @@
/* #ifndef BASE64_H
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) #define BASE64_H
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_BASE64_H
#define AVUTIL_BASE64_H
#include <stdint.h>
/** /**
* @defgroup lavu_base64 Base64 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* @ingroup lavu_crypto * 1. 图片转base64字符串。
* @{ * 2. base64字符串转图片。
* 3. 字符转base64字符串。
* 4. base64字符串转字符。
* 5. 后期增加数据压缩。
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
*/ */
/** #include <QImage>
* Decode a base64-encoded string.
*
* @param out buffer for decoded data
* @param in null-terminated input string
* @param out_size size in bytes of the out buffer, must be at
* least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
* @return number of bytes written, or a negative value in case of
* invalid input
*/
int av_base64_decode(uint8_t *out, const char *in, int out_size);
/** #ifdef quc
* Calculate the output size in bytes needed to decode a base64 string class Q_DECL_EXPORT Base64
* with length x to a data buffer. #else
*/ class Base64
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4) #endif
/** {
* Encode data to base64 and null-terminate. public:
* //图片转base64字符串
* @param out buffer for encoded data static QString imageToBase64(const QImage &image);
* @param out_size size in bytes of the out buffer (including the static QByteArray imageToBase64x(const QImage &image);
* null terminator), must be at least AV_BASE64_SIZE(in_size)
* @param in input buffer containing the data to encode
* @param in_size size in bytes of the in buffer
* @return out or NULL in case of error
*/
char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/** //base64字符串转图片
* Calculate the output size needed to base64-encode x bytes to a static QImage base64ToImage(const QString &data);
* null-terminated string. static QImage base64ToImagex(const QByteArray &data);
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
/** //字符串与base64互转
* @} static QString textToBase64(const QString &text);
*/ static QString base64ToText(const QString &text);
};
#endif /* AVUTIL_BASE64_H */ #endif // BASE64_H

View File

@@ -1,72 +1,37 @@
/* #ifndef BASE64_H
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) #define BASE64_H
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_BASE64_H
#define AVUTIL_BASE64_H
#include <stdint.h>
/** /**
* @defgroup lavu_base64 Base64 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* @ingroup lavu_crypto * 1. 图片转base64字符串。
* @{ * 2. base64字符串转图片。
* 3. 字符转base64字符串。
* 4. base64字符串转字符。
* 5. 后期增加数据压缩。
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
*/ */
/** #include <QImage>
* Decode a base64-encoded string.
*
* @param out buffer for decoded data
* @param in null-terminated input string
* @param out_size size in bytes of the out buffer, must be at
* least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
* @return number of bytes written, or a negative value in case of
* invalid input
*/
int av_base64_decode(uint8_t *out, const char *in, int out_size);
/** #ifdef quc
* Calculate the output size in bytes needed to decode a base64 string class Q_DECL_EXPORT Base64
* with length x to a data buffer. #else
*/ class Base64
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4) #endif
/** {
* Encode data to base64 and null-terminate. public:
* //图片转base64字符串
* @param out buffer for encoded data static QString imageToBase64(const QImage &image);
* @param out_size size in bytes of the out buffer (including the static QByteArray imageToBase64x(const QImage &image);
* null terminator), must be at least AV_BASE64_SIZE(in_size)
* @param in input buffer containing the data to encode
* @param in_size size in bytes of the in buffer
* @return out or NULL in case of error
*/
char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/** //base64字符串转图片
* Calculate the output size needed to base64-encode x bytes to a static QImage base64ToImage(const QString &data);
* null-terminated string. static QImage base64ToImagex(const QByteArray &data);
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
/** //字符串与base64互转
* @} static QString textToBase64(const QString &text);
*/ static QString base64ToText(const QString &text);
};
#endif /* AVUTIL_BASE64_H */ #endif // BASE64_H

View File

@@ -1,72 +1,37 @@
/* #ifndef BASE64_H
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) #define BASE64_H
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_BASE64_H
#define AVUTIL_BASE64_H
#include <stdint.h>
/** /**
* @defgroup lavu_base64 Base64 * base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* @ingroup lavu_crypto * 1. 图片转base64字符串。
* @{ * 2. base64字符串转图片。
* 3. 字符转base64字符串。
* 4. base64字符串转字符。
* 5. 后期增加数据压缩。
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
*/ */
/** #include <QImage>
* Decode a base64-encoded string.
*
* @param out buffer for decoded data
* @param in null-terminated input string
* @param out_size size in bytes of the out buffer, must be at
* least 3/4 of the length of in, that is AV_BASE64_DECODE_SIZE(strlen(in))
* @return number of bytes written, or a negative value in case of
* invalid input
*/
int av_base64_decode(uint8_t *out, const char *in, int out_size);
/** #ifdef quc
* Calculate the output size in bytes needed to decode a base64 string class Q_DECL_EXPORT Base64
* with length x to a data buffer. #else
*/ class Base64
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4) #endif
/** {
* Encode data to base64 and null-terminate. public:
* //图片转base64字符串
* @param out buffer for encoded data static QString imageToBase64(const QImage &image);
* @param out_size size in bytes of the out buffer (including the static QByteArray imageToBase64x(const QImage &image);
* null terminator), must be at least AV_BASE64_SIZE(in_size)
* @param in input buffer containing the data to encode
* @param in_size size in bytes of the in buffer
* @return out or NULL in case of error
*/
char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/** //base64字符串转图片
* Calculate the output size needed to base64-encode x bytes to a static QImage base64ToImage(const QString &data);
* null-terminated string. static QImage base64ToImagex(const QByteArray &data);
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
/** //字符串与base64互转
* @} static QString textToBase64(const QString &text);
*/ static QString base64ToText(const QString &text);
};
#endif /* AVUTIL_BASE64_H */ #endif // BASE64_H

View File

@@ -3,14 +3,14 @@
/** /**
* FlatUI辅助类 作者:feiyangqingyun(QQ:517216493) 2016-12-16 * FlatUI辅助类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
* 1. 按钮样式设置 * 1. 按钮样式设置
* 2. 文本框样式设置 * 2. 文本框样式设置
* 3. 进度条样式 * 3. 进度条样式
* 4. 滑块条样式 * 4. 滑块条样式
* 5. 单选框样式 * 5. 单选框样式
* 6. 滚动条样式 * 6. 滚动条样式
* 7. 可自由设置对象的高度宽度大小等 * 7. 可自由设置对象的高度宽度大小等
* 8. 自带默认参数值 * 8. 自带默认参数值
*/ */
#include <QObject> #include <QObject>

View File

@@ -3,11 +3,11 @@
/** /**
* 无边框窗体类 作者:feiyangqingyun(QQ:517216493) 2019-10-03 * 无边框窗体类 作者:feiyangqingyun(QQ:517216493) 2019-10-03
* 1. 可以指定需要无边框的widget * 1. 可以指定需要无边框的widget
* 2. 边框四周八个方位都可以自由拉伸 * 2. 边框四周八个方位都可以自由拉伸
* 3. 可设置对应位置的边距,以便识别更大区域 * 3. 可设置对应位置的边距以便识别更大区域
* 4. 可设置是否允许拖动 * 4. 可设置是否允许拖动
* 5. 可设置是否允许拉伸 * 5. 可设置是否允许拉伸
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -27,7 +27,19 @@
#include <stdio.h> // for FILE* #include <stdio.h> // for FILE*
#include <string.h> // for memcpy and bzero #include <string.h> // for memcpy and bzero
#ifdef _MSC_VER
typedef signed __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef signed __int16 int16_t;
typedef unsigned __int16 uint16_t;
typedef signed __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h> // for integer typedefs #include <stdint.h> // for integer typedefs
#endif
// Define these macros to hook into a custom memory allocator. // Define these macros to hook into a custom memory allocator.
// TEMP_MALLOC and TEMP_FREE will only be called in stack fashion - frees in the reverse order of mallocs // TEMP_MALLOC and TEMP_FREE will only be called in stack fashion - frees in the reverse order of mallocs

View File

@@ -3,11 +3,11 @@
/** /**
* GIF录屏控件 作者:feiyangqingyun(QQ:517216493) 2019-4-3 * GIF录屏控件 作者:feiyangqingyun(QQ:517216493) 2019-4-3
* 1. 可设置要录制屏幕的宽高,支持右下角直接拉动改变. * 1. 可设置要录制屏幕的宽高支持右下角直接拉动改变
* 2. 可设置变宽的宽度 * 2. 可设置变宽的宽度
* 3. 可设置录屏控件的背景颜色 * 3. 可设置录屏控件的背景颜色
* 4. 可设置录制的帧数 * 4. 可设置录制的帧数
* 5. 录制区域可自由拖动选择 * 5. 录制区域可自由拖动选择
*/ */
#include <QDialog> #include <QDialog>

View File

@@ -3,8 +3,8 @@
/** /**
* 图片开关控件 作者:feiyangqingyun(QQ:517216493) 2016-11-25 * 图片开关控件 作者:feiyangqingyun(QQ:517216493) 2016-11-25
* 1. 自带三种开关按钮样式 * 1. 自带三种开关按钮样式
* 2. 可自定义开关图片 * 2. 可自定义开关图片
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,12 +3,12 @@
/** /**
* IP地址输入框控件 作者:feiyangqingyun(QQ:517216493) 2017-8-11 * IP地址输入框控件 作者:feiyangqingyun(QQ:517216493) 2017-8-11
* 1. 可设置IP地址,自动填入框 * 1. 可设置IP地址自动填入框
* 2. 可清空IP地址 * 2. 可清空IP地址
* 3. 支持按下小圆点自动切换 * 3. 支持按下小圆点自动切换
* 4. 支持退格键自动切换 * 4. 支持退格键自动切换
* 5. 支持IP地址过滤 * 5. 支持IP地址过滤
* 6. 可设置背景色/边框颜色/边框圆角角度 * 6. 可设置背景色边框颜色边框圆角角度
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,16 +3,16 @@
/** /**
* 高亮发光按钮控件 作者:feiyangqingyun(QQ:517216493) 2016-10-16 * 高亮发光按钮控件 作者:feiyangqingyun(QQ:517216493) 2016-10-16
* 1. 可设置文本,居中显示 * 1. 可设置文本居中显示
* 2. 可设置文本颜色 * 2. 可设置文本颜色
* 3. 可设置外边框渐变颜色 * 3. 可设置外边框渐变颜色
* 4. 可设置里边框渐变颜色 * 4. 可设置里边框渐变颜色
* 5. 可设置背景色 * 5. 可设置背景色
* 6. 可直接调用内置的设置 绿色/红色/黄色/黑色/蓝色 等公有槽函数 * 6. 可直接调用内置的设置 绿色红色黄色黑色蓝色 等公有槽函数
* 7. 可设置是否在容器中可移动,当成一个对象使用 * 7. 可设置是否在容器中可移动当成一个对象使用
* 8. 可设置是否显示矩形 * 8. 可设置是否显示矩形
* 9. 可设置报警颜色+非报警颜色 * 9. 可设置报警颜色非报警颜色
* 10. 可控制启动报警和停止报警,报警时闪烁 * 10. 可控制启动报警和停止报警报警时闪烁
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,10 +3,10 @@
/** /**
* 托盘图标控件 作者:feiyangqingyun(QQ:517216493) 2017-1-8 * 托盘图标控件 作者:feiyangqingyun(QQ:517216493) 2017-1-8
* 1. 可设置托盘图标对应所属主窗体 * 1. 可设置托盘图标对应所属主窗体
* 2. 可设置托盘图标 * 2. 可设置托盘图标
* 3. 可设置提示信息 * 3. 可设置提示信息
* 4. 自带右键菜单 * 4. 自带右键菜单
*/ */
#include <QObject> #include <QObject>

View File

@@ -3,11 +3,11 @@
/** /**
* 农历信息类 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2016-12-10 * 农历信息类 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2016-12-10
* 1. 计算是否闰年 * 1. 计算是否闰年
* 2. 计算国际节日 * 2. 计算国际节日
* 3. 计算二十四节气 * 3. 计算二十四节气
* 4. 计算农历年 天干+地支+生肖 * 4. 计算农历年 天干地支生肖
* 5. 计算指定年月日农历信息,包括公历节日和农历节日及二十四节气 * 5. 计算指定年月日农历信息包括公历节日和农历节日及二十四节气
*/ */
#include <QObject> #include <QObject>

View File

@@ -3,15 +3,15 @@
/** /**
* 自定义农历控件 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2017-11-17 * 自定义农历控件 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2017-11-17
* 1. 可设置边框颜色/周末颜色/角标颜色/农历节日颜色 * 1. 可设置边框颜色周末颜色角标颜色农历节日颜色
* 2. 可设置当前月文字颜色/其他月文字颜色/选中日期文字颜色/悬停日期文字颜色 * 2. 可设置当前月文字颜色其他月文字颜色选中日期文字颜色悬停日期文字颜色
* 3. 可设置当前月农历文字颜色/其他月农历文字颜色/选中日期农历文字颜色/悬停日期农历文字颜色 * 3. 可设置当前月农历文字颜色其他月农历文字颜色选中日期农历文字颜色悬停日期农历文字颜色
* 4. 可设置当前月背景颜色/其他月背景颜色/选中日期背景颜色/悬停日期背景颜色 * 4. 可设置当前月背景颜色其他月背景颜色选中日期背景颜色悬停日期背景颜色
* 5. 可设置三种选中背景模式,矩形背景+圆形背景+图片背景 * 5. 可设置三种选中背景模式矩形背景圆形背景图片背景
* 6. 可直接切换到上一年/下一年/上一月/下一月/转到今天 * 6. 可直接切换到上一年下一年上一月下一月转到今天
* 7. 可设置是否显示农历信息,不显示则当做正常的日历使用 * 7. 可设置是否显示农历信息不显示则当做正常的日历使用
* 8. 支持1901年-2099年范围 * 8. 支持1901年-2099年范围
* 9. 很方便改成多选日期 * 9. 很方便改成多选日期
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,11 +3,11 @@
/** /**
* 弹窗遮罩层控件 作者:feiyangqingyun(QQ:517216493) 2016-12-26 * 弹窗遮罩层控件 作者:feiyangqingyun(QQ:517216493) 2016-12-26
* 1. 可设置需要遮罩的主窗体,自动跟随主窗体位置显示遮罩面积 * 1. 可设置需要遮罩的主窗体自动跟随主窗体位置显示遮罩面积
* 2. 只需要将弹窗窗体的名称一开始传入队列即可,足够简单 * 2. 只需要将弹窗窗体的名称一开始传入队列即可足够简单
* 3. 可设置透明度 * 3. 可设置透明度
* 4. 可设置遮罩层颜色 * 4. 可设置遮罩层颜色
* 5. 不阻塞消息循坏 * 5. 不阻塞消息循坏
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,9 +3,9 @@
/** /**
* 通用控件移动类 作者:feiyangqingyun(QQ:517216493) 2019-9-28 * 通用控件移动类 作者:feiyangqingyun(QQ:517216493) 2019-9-28
* 1. 可以指定需要移动的widget * 1. 可以指定需要移动的widget
* 2. 可设置是否限定鼠标左键拖动 * 2. 可设置是否限定鼠标左键拖动
* 3. 支持任意widget控件 * 3. 支持任意widget控件
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -8,11 +8,11 @@
/** /**
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23 * 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
* 1. 可传入多种图形字体文件 * 1. 可传入多种图形字体文件
* 2. 可设置 QLabel+QAbstractButton 图形字体 * 2. 可设置 QLabel+QAbstractButton 图形字体
* 3. 可设置按钮图标 * 3. 可设置按钮图标
* 4. 可获取指定尺寸的图形字体图片 * 4. 可获取指定尺寸的图形字体图片
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色 * 5. 超级导航栏样式设置带图标和效果切换悬停颜色按下颜色选中颜色
*/ */
#ifdef quc #ifdef quc

View File

@@ -3,14 +3,14 @@
/** /**
* 导航按钮控件 作者:feiyangqingyun(QQ:517216493) 2017-12-19 * 导航按钮控件 作者:feiyangqingyun(QQ:517216493) 2017-12-19
* 1. 可设置文字的左侧+右侧+顶部+底部间隔 * 1. 可设置文字的左侧右侧顶部底部间隔
* 2. 可设置文字对齐方式 * 2. 可设置文字对齐方式
* 3. 可设置显示倒三角/倒三角边长/倒三角位置/倒三角颜色 * 3. 可设置显示倒三角倒三角边长倒三角位置倒三角颜色
* 4. 可设置显示图标/图标间隔/图标尺寸/正常状态图标/悬停状态图标/选中状态图标 * 4. 可设置显示图标图标间隔图标尺寸正常状态图标悬停状态图标选中状态图标
* 5. 可设置显示边框线条/线条宽度/线条间隔/线条位置/线条颜色 * 5. 可设置显示边框线条线条宽度线条间隔线条位置线条颜色
* 6. 可设置正常背景颜色/悬停背景颜色/选中背景颜色 * 6. 可设置正常背景颜色悬停背景颜色选中背景颜色
* 7. 可设置正常文字颜色/悬停文字颜色/选中文字颜色 * 7. 可设置正常文字颜色悬停文字颜色选中文字颜色
* 8. 可设置背景颜色为画刷颜色 * 8. 可设置背景颜色为画刷颜色
*/ */
#include <QPushButton> #include <QPushButton>

View File

@@ -3,8 +3,8 @@
/** /**
* Ntp校时类 作者:feiyangqingyun(QQ:517216493) 2017-2-16 * Ntp校时类 作者:feiyangqingyun(QQ:517216493) 2017-2-16
* 1. 可设置Ntp服务器IP地址 * 1. 可设置Ntp服务器IP地址
* 2. 收到时间信号发出 * 2. 收到时间信号发出
*/ */
#include <QObject> #include <QObject>

View File

@@ -3,9 +3,9 @@
/** /**
* 全局截屏控件 作者:feiyangqingyun(QQ:517216493) 2016-11-11 * 全局截屏控件 作者:feiyangqingyun(QQ:517216493) 2016-11-11
* 1. 支持鼠标右键选择菜单 * 1. 支持鼠标右键选择菜单
* 2. 支持全局截屏和局部截屏 * 2. 支持全局截屏和局部截屏
* 3. 支持图片另存为 * 3. 支持图片另存为
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,7 +3,7 @@
/** /**
* 视频监控画面控件 整理:feiyangqingyun(QQ:517216493) 2019-4-11 * 视频监控画面控件 整理:feiyangqingyun(QQ:517216493) 2019-4-11
* 1. 目前颜色都写死在样式表,可自行更改或者拓展属性设置 * 1. 目前颜色都写死在样式表可自行更改或者拓展属性设置
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,18 +3,18 @@
/** /**
* 通用视频播放控件 作者:feiyangqingyun(QQ:517216493) 2018-5-1 * 通用视频播放控件 作者:feiyangqingyun(QQ:517216493) 2018-5-1
* 1. 可设置边框大小 * 1. 可设置边框大小
* 2. 可设置边框颜色 * 2. 可设置边框颜色
* 3. 可设置两路OSD标签 * 3. 可设置两路OSD标签
* 4. 可设置是否绘制OSD标签 * 4. 可设置是否绘制OSD标签
* 5. 可设置标签文本或图片 * 5. 可设置标签文本或图片
* 6. 可设置OSD位置 左上角+左下角+右上角+右下角 * 6. 可设置OSD位置 左上角左下角右上角右下角
* 7. 可设置OSD风格 文本+日期+时间+日期时间+图片 * 7. 可设置OSD风格 文本日期时间日期时间图片
* 8. 自定义半透明悬浮窗体,一排按钮 * 8. 自定义半透明悬浮窗体一排按钮
* 9. 悬浮按钮可自定义设置,包括背景颜色+按下颜色 * 9. 悬浮按钮可自定义设置包括背景颜色+按下颜色
* 10. 发送信号通知单击了哪个悬浮按钮 * 10. 发送信号通知单击了哪个悬浮按钮
* 11. 能够识别拖进来的文件,通知url * 11. 能够识别拖进来的文件通知url
* 12. 提供open close pause等接口 * 12. 提供open close pause等接口
*/ */
#include <QWidget> #include <QWidget>

View File

@@ -3,9 +3,9 @@
/** /**
* 汉字转拼音类 作者:feiyangqingyun(QQ:517216493) 2019-2-16 * 汉字转拼音类 作者:feiyangqingyun(QQ:517216493) 2019-2-16
* 1. 汉字转拼音 * 1. 汉字转拼音
* 2. 汉字转拼音简拼 * 2. 汉字转拼音简拼
* 3. 汉字转拼音首字母 * 3. 汉字转拼音首字母
*/ */
#include <QObject> #include <QObject>