更新代码
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串
|
||||
* 2. base64字符串转图片
|
||||
* 3. 字符转base64字符串
|
||||
* 4. base64字符串转字符
|
||||
* 5. 后期增加数据压缩
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
#include <QImage>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* 电池电量控件 作者:feiyangqingyun(QQ:517216493) 2016-10-23
|
||||
* 1. 可设置电池电量,动态切换电池电量变化
|
||||
* 2. 可设置电池电量警戒值
|
||||
* 3. 可设置电池电量正常颜色和报警颜色
|
||||
* 4. 可设置边框渐变颜色
|
||||
* 5. 可设置电量变化时每次移动的步长
|
||||
* 6. 可设置边框圆角角度/背景进度圆角角度/头部圆角角度
|
||||
* 1. 可设置电池电量,动态切换电池电量变化。
|
||||
* 2. 可设置电池电量警戒值。
|
||||
* 3. 可设置电池电量正常颜色和报警颜色。
|
||||
* 4. 可设置边框渐变颜色。
|
||||
* 5. 可设置电量变化时每次移动的步长。
|
||||
* 6. 可设置边框圆角角度、背景进度圆角角度、头部圆角角度。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串
|
||||
* 2. base64字符串转图片
|
||||
* 3. 字符转base64字符串
|
||||
* 4. base64字符串转字符
|
||||
* 5. 后期增加数据压缩
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
#include <QImage>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
/**
|
||||
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
|
||||
* 1. 可传入多种图形字体文件
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体
|
||||
* 3. 可设置按钮图标
|
||||
* 4. 可获取指定尺寸的图形字体图片
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色
|
||||
* 1. 可传入多种图形字体文件。
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体。
|
||||
* 3. 可设置按钮图标。
|
||||
* 4. 可获取指定尺寸的图形字体图片。
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换、悬停颜色、按下颜色、选中颜色。
|
||||
*/
|
||||
|
||||
#ifdef quc
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
/**
|
||||
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
|
||||
* 1. 可传入多种图形字体文件
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体
|
||||
* 3. 可设置按钮图标
|
||||
* 4. 可获取指定尺寸的图形字体图片
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色
|
||||
* 1. 可传入多种图形字体文件。
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体。
|
||||
* 3. 可设置按钮图标。
|
||||
* 4. 可获取指定尺寸的图形字体图片。
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换、悬停颜色、按下颜色、选中颜色。
|
||||
*/
|
||||
|
||||
#ifdef quc
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* 设备按钮控件 作者:feiyangqingyun(QQ:517216493) 2018-7-2
|
||||
* 1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2
|
||||
* 2. 可设置按钮颜色 布防、撤防、报警、旁路、故障
|
||||
* 3. 可设置报警切换
|
||||
* 4. 可设置显示的防区号
|
||||
* 5. 可设置是否可鼠标拖动
|
||||
* 6. 发出单击和双击信号
|
||||
* 1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2。
|
||||
* 2. 可设置按钮颜色 布防、撤防、报警、旁路、故障。
|
||||
* 3. 可设置报警切换。
|
||||
* 4. 可设置显示的防区号。
|
||||
* 5. 可设置是否可鼠标拖动。
|
||||
* 6. 发出单击和双击信号。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
/**
|
||||
* 本地存储空间大小控件 作者:feiyangqingyun(QQ:517216493) 2016-11-30
|
||||
* 1. 可自动加载本地存储设备的总容量/已用容量
|
||||
* 2. 进度条显示已用容量
|
||||
* 3. 支持所有操作系统
|
||||
* 4. 增加U盘或者SD卡到达信号
|
||||
* 1. 可自动加载本地存储设备的总容量/已用容量。
|
||||
* 2. 进度条显示已用容量。
|
||||
* 3. 支持所有操作系统。
|
||||
* 4. 增加U盘或者SD卡到达信号。
|
||||
*/
|
||||
|
||||
#include <QTableWidget>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1,72 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
|
||||
*
|
||||
* 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>
|
||||
#ifndef BASE64_H
|
||||
#define BASE64_H
|
||||
|
||||
/**
|
||||
* @defgroup lavu_base64 Base64
|
||||
* @ingroup lavu_crypto
|
||||
* @{
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
#include <QImage>
|
||||
|
||||
/**
|
||||
* Calculate the output size in bytes needed to decode a base64 string
|
||||
* with length x to a data buffer.
|
||||
*/
|
||||
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4)
|
||||
#ifdef quc
|
||||
class Q_DECL_EXPORT Base64
|
||||
#else
|
||||
class Base64
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Encode data to base64 and null-terminate.
|
||||
*
|
||||
* @param out buffer for encoded data
|
||||
* @param out_size size in bytes of the out buffer (including the
|
||||
* 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);
|
||||
{
|
||||
public:
|
||||
//图片转base64字符串
|
||||
static QString imageToBase64(const QImage &image);
|
||||
static QByteArray imageToBase64x(const QImage &image);
|
||||
|
||||
/**
|
||||
* Calculate the output size needed to base64-encode x bytes to a
|
||||
* null-terminated string.
|
||||
*/
|
||||
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
|
||||
//base64字符串转图片
|
||||
static QImage base64ToImage(const QString &data);
|
||||
static QImage base64ToImagex(const QByteArray &data);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
//字符串与base64互转
|
||||
static QString textToBase64(const QString &text);
|
||||
static QString base64ToText(const QString &text);
|
||||
};
|
||||
|
||||
#endif /* AVUTIL_BASE64_H */
|
||||
#endif // BASE64_H
|
||||
|
||||
@@ -1,72 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
|
||||
*
|
||||
* 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>
|
||||
#ifndef BASE64_H
|
||||
#define BASE64_H
|
||||
|
||||
/**
|
||||
* @defgroup lavu_base64 Base64
|
||||
* @ingroup lavu_crypto
|
||||
* @{
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
#include <QImage>
|
||||
|
||||
/**
|
||||
* Calculate the output size in bytes needed to decode a base64 string
|
||||
* with length x to a data buffer.
|
||||
*/
|
||||
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4)
|
||||
#ifdef quc
|
||||
class Q_DECL_EXPORT Base64
|
||||
#else
|
||||
class Base64
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Encode data to base64 and null-terminate.
|
||||
*
|
||||
* @param out buffer for encoded data
|
||||
* @param out_size size in bytes of the out buffer (including the
|
||||
* 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);
|
||||
{
|
||||
public:
|
||||
//图片转base64字符串
|
||||
static QString imageToBase64(const QImage &image);
|
||||
static QByteArray imageToBase64x(const QImage &image);
|
||||
|
||||
/**
|
||||
* Calculate the output size needed to base64-encode x bytes to a
|
||||
* null-terminated string.
|
||||
*/
|
||||
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
|
||||
//base64字符串转图片
|
||||
static QImage base64ToImage(const QString &data);
|
||||
static QImage base64ToImagex(const QByteArray &data);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
//字符串与base64互转
|
||||
static QString textToBase64(const QString &text);
|
||||
static QString base64ToText(const QString &text);
|
||||
};
|
||||
|
||||
#endif /* AVUTIL_BASE64_H */
|
||||
#endif // BASE64_H
|
||||
|
||||
@@ -1,72 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
|
||||
*
|
||||
* 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>
|
||||
#ifndef BASE64_H
|
||||
#define BASE64_H
|
||||
|
||||
/**
|
||||
* @defgroup lavu_base64 Base64
|
||||
* @ingroup lavu_crypto
|
||||
* @{
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
#include <QImage>
|
||||
|
||||
/**
|
||||
* Calculate the output size in bytes needed to decode a base64 string
|
||||
* with length x to a data buffer.
|
||||
*/
|
||||
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4)
|
||||
#ifdef quc
|
||||
class Q_DECL_EXPORT Base64
|
||||
#else
|
||||
class Base64
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Encode data to base64 and null-terminate.
|
||||
*
|
||||
* @param out buffer for encoded data
|
||||
* @param out_size size in bytes of the out buffer (including the
|
||||
* 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);
|
||||
{
|
||||
public:
|
||||
//图片转base64字符串
|
||||
static QString imageToBase64(const QImage &image);
|
||||
static QByteArray imageToBase64x(const QImage &image);
|
||||
|
||||
/**
|
||||
* Calculate the output size needed to base64-encode x bytes to a
|
||||
* null-terminated string.
|
||||
*/
|
||||
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
|
||||
//base64字符串转图片
|
||||
static QImage base64ToImage(const QString &data);
|
||||
static QImage base64ToImagex(const QByteArray &data);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
//字符串与base64互转
|
||||
static QString textToBase64(const QString &text);
|
||||
static QString base64ToText(const QString &text);
|
||||
};
|
||||
|
||||
#endif /* AVUTIL_BASE64_H */
|
||||
#endif // BASE64_H
|
||||
|
||||
@@ -1,72 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com)
|
||||
*
|
||||
* 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>
|
||||
#ifndef BASE64_H
|
||||
#define BASE64_H
|
||||
|
||||
/**
|
||||
* @defgroup lavu_base64 Base64
|
||||
* @ingroup lavu_crypto
|
||||
* @{
|
||||
* base64编码转换类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 图片转base64字符串。
|
||||
* 2. base64字符串转图片。
|
||||
* 3. 字符转base64字符串。
|
||||
* 4. base64字符串转字符。
|
||||
* 5. 后期增加数据压缩。
|
||||
* 6. Qt6对base64编码转换进行了重写效率提升至少200%。
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
#include <QImage>
|
||||
|
||||
/**
|
||||
* Calculate the output size in bytes needed to decode a base64 string
|
||||
* with length x to a data buffer.
|
||||
*/
|
||||
#define AV_BASE64_DECODE_SIZE(x) ((x) * 3LL / 4)
|
||||
#ifdef quc
|
||||
class Q_DECL_EXPORT Base64
|
||||
#else
|
||||
class Base64
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Encode data to base64 and null-terminate.
|
||||
*
|
||||
* @param out buffer for encoded data
|
||||
* @param out_size size in bytes of the out buffer (including the
|
||||
* 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);
|
||||
{
|
||||
public:
|
||||
//图片转base64字符串
|
||||
static QString imageToBase64(const QImage &image);
|
||||
static QByteArray imageToBase64x(const QImage &image);
|
||||
|
||||
/**
|
||||
* Calculate the output size needed to base64-encode x bytes to a
|
||||
* null-terminated string.
|
||||
*/
|
||||
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
|
||||
//base64字符串转图片
|
||||
static QImage base64ToImage(const QString &data);
|
||||
static QImage base64ToImagex(const QByteArray &data);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
//字符串与base64互转
|
||||
static QString textToBase64(const QString &text);
|
||||
static QString base64ToText(const QString &text);
|
||||
};
|
||||
|
||||
#endif /* AVUTIL_BASE64_H */
|
||||
#endif // BASE64_H
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
/**
|
||||
* FlatUI辅助类 作者:feiyangqingyun(QQ:517216493) 2016-12-16
|
||||
* 1. 按钮样式设置
|
||||
* 2. 文本框样式设置
|
||||
* 3. 进度条样式
|
||||
* 4. 滑块条样式
|
||||
* 5. 单选框样式
|
||||
* 6. 滚动条样式
|
||||
* 7. 可自由设置对象的高度宽度大小等
|
||||
* 8. 自带默认参数值
|
||||
* 1. 按钮样式设置。
|
||||
* 2. 文本框样式设置。
|
||||
* 3. 进度条样式。
|
||||
* 4. 滑块条样式。
|
||||
* 5. 单选框样式。
|
||||
* 6. 滚动条样式。
|
||||
* 7. 可自由设置对象的高度宽度大小等。
|
||||
* 8. 自带默认参数值。
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
/**
|
||||
* 无边框窗体类 作者:feiyangqingyun(QQ:517216493) 2019-10-03
|
||||
* 1. 可以指定需要无边框的widget
|
||||
* 2. 边框四周八个方位都可以自由拉伸
|
||||
* 3. 可设置对应位置的边距,以便识别更大区域
|
||||
* 4. 可设置是否允许拖动
|
||||
* 5. 可设置是否允许拉伸
|
||||
* 1. 可以指定需要无边框的widget。
|
||||
* 2. 边框四周八个方位都可以自由拉伸。
|
||||
* 3. 可设置对应位置的边距,以便识别更大区域。
|
||||
* 4. 可设置是否允许拖动。
|
||||
* 5. 可设置是否允许拉伸。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -27,7 +27,19 @@
|
||||
|
||||
#include <stdio.h> // for FILE*
|
||||
#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
|
||||
#endif
|
||||
|
||||
// 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
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
/**
|
||||
* GIF录屏控件 作者:feiyangqingyun(QQ:517216493) 2019-4-3
|
||||
* 1. 可设置要录制屏幕的宽高,支持右下角直接拉动改变.
|
||||
* 2. 可设置变宽的宽度
|
||||
* 3. 可设置录屏控件的背景颜色
|
||||
* 4. 可设置录制的帧数
|
||||
* 5. 录制区域可自由拖动选择
|
||||
* 1. 可设置要录制屏幕的宽高,支持右下角直接拉动改变。
|
||||
* 2. 可设置变宽的宽度。
|
||||
* 3. 可设置录屏控件的背景颜色。
|
||||
* 4. 可设置录制的帧数。
|
||||
* 5. 录制区域可自由拖动选择。
|
||||
*/
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/**
|
||||
* 图片开关控件 作者:feiyangqingyun(QQ:517216493) 2016-11-25
|
||||
* 1. 自带三种开关按钮样式
|
||||
* 2. 可自定义开关图片
|
||||
* 1. 自带三种开关按钮样式。
|
||||
* 2. 可自定义开关图片。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
/**
|
||||
* IP地址输入框控件 作者:feiyangqingyun(QQ:517216493) 2017-8-11
|
||||
* 1. 可设置IP地址,自动填入框
|
||||
* 2. 可清空IP地址
|
||||
* 3. 支持按下小圆点自动切换
|
||||
* 4. 支持退格键自动切换
|
||||
* 5. 支持IP地址过滤
|
||||
* 6. 可设置背景色/边框颜色/边框圆角角度
|
||||
* 1. 可设置IP地址,自动填入框。
|
||||
* 2. 可清空IP地址。
|
||||
* 3. 支持按下小圆点自动切换。
|
||||
* 4. 支持退格键自动切换。
|
||||
* 5. 支持IP地址过滤。
|
||||
* 6. 可设置背景色、边框颜色、边框圆角角度。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
|
||||
/**
|
||||
* 高亮发光按钮控件 作者:feiyangqingyun(QQ:517216493) 2016-10-16
|
||||
* 1. 可设置文本,居中显示
|
||||
* 2. 可设置文本颜色
|
||||
* 3. 可设置外边框渐变颜色
|
||||
* 4. 可设置里边框渐变颜色
|
||||
* 5. 可设置背景色
|
||||
* 6. 可直接调用内置的设置 绿色/红色/黄色/黑色/蓝色 等公有槽函数
|
||||
* 7. 可设置是否在容器中可移动,当成一个对象使用
|
||||
* 8. 可设置是否显示矩形
|
||||
* 9. 可设置报警颜色+非报警颜色
|
||||
* 10. 可控制启动报警和停止报警,报警时闪烁
|
||||
* 1. 可设置文本,居中显示。
|
||||
* 2. 可设置文本颜色。
|
||||
* 3. 可设置外边框渐变颜色。
|
||||
* 4. 可设置里边框渐变颜色。
|
||||
* 5. 可设置背景色。
|
||||
* 6. 可直接调用内置的设置 绿色、红色、黄色、黑色、蓝色 等公有槽函数。
|
||||
* 7. 可设置是否在容器中可移动,当成一个对象使用。
|
||||
* 8. 可设置是否显示矩形。
|
||||
* 9. 可设置报警颜色、非报警颜色。
|
||||
* 10. 可控制启动报警和停止报警,报警时闪烁。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
/**
|
||||
* 托盘图标控件 作者:feiyangqingyun(QQ:517216493) 2017-1-8
|
||||
* 1. 可设置托盘图标对应所属主窗体
|
||||
* 2. 可设置托盘图标
|
||||
* 3. 可设置提示信息
|
||||
* 4. 自带右键菜单
|
||||
* 1. 可设置托盘图标对应所属主窗体。
|
||||
* 2. 可设置托盘图标。
|
||||
* 3. 可设置提示信息。
|
||||
* 4. 自带右键菜单。
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
/**
|
||||
* 农历信息类 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2016-12-10
|
||||
* 1. 计算是否闰年
|
||||
* 2. 计算国际节日
|
||||
* 3. 计算二十四节气
|
||||
* 4. 计算农历年 天干+地支+生肖
|
||||
* 5. 计算指定年月日农历信息,包括公历节日和农历节日及二十四节气
|
||||
* 1. 计算是否闰年。
|
||||
* 2. 计算国际节日。
|
||||
* 3. 计算二十四节气。
|
||||
* 4. 计算农历年 天干、地支、生肖。
|
||||
* 5. 计算指定年月日农历信息,包括公历节日和农历节日及二十四节气。
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
/**
|
||||
* 自定义农历控件 作者:倪大侠 整理:feiyangqingyun(QQ:517216493) 2017-11-17
|
||||
* 1. 可设置边框颜色/周末颜色/角标颜色/农历节日颜色
|
||||
* 2. 可设置当前月文字颜色/其他月文字颜色/选中日期文字颜色/悬停日期文字颜色
|
||||
* 3. 可设置当前月农历文字颜色/其他月农历文字颜色/选中日期农历文字颜色/悬停日期农历文字颜色
|
||||
* 4. 可设置当前月背景颜色/其他月背景颜色/选中日期背景颜色/悬停日期背景颜色
|
||||
* 5. 可设置三种选中背景模式,矩形背景+圆形背景+图片背景
|
||||
* 6. 可直接切换到上一年/下一年/上一月/下一月/转到今天
|
||||
* 7. 可设置是否显示农历信息,不显示则当做正常的日历使用
|
||||
* 8. 支持1901年-2099年范围
|
||||
* 9. 很方便改成多选日期
|
||||
* 1. 可设置边框颜色、周末颜色、角标颜色、农历节日颜色。
|
||||
* 2. 可设置当前月文字颜色、其他月文字颜色、选中日期文字颜色、悬停日期文字颜色。
|
||||
* 3. 可设置当前月农历文字颜色、其他月农历文字颜色、选中日期农历文字颜色、悬停日期农历文字颜色。
|
||||
* 4. 可设置当前月背景颜色、其他月背景颜色、选中日期背景颜色、悬停日期背景颜色。
|
||||
* 5. 可设置三种选中背景模式,矩形背景、圆形背景、图片背景。
|
||||
* 6. 可直接切换到上一年、下一年、上一月、下一月、转到今天。
|
||||
* 7. 可设置是否显示农历信息,不显示则当做正常的日历使用。
|
||||
* 8. 支持1901年-2099年范围。
|
||||
* 9. 很方便改成多选日期。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
|
||||
/**
|
||||
* 弹窗遮罩层控件 作者:feiyangqingyun(QQ:517216493) 2016-12-26
|
||||
* 1. 可设置需要遮罩的主窗体,自动跟随主窗体位置显示遮罩面积
|
||||
* 2. 只需要将弹窗窗体的名称一开始传入队列即可,足够简单
|
||||
* 3. 可设置透明度
|
||||
* 4. 可设置遮罩层颜色
|
||||
* 5. 不阻塞消息循坏
|
||||
* 1. 可设置需要遮罩的主窗体,自动跟随主窗体位置显示遮罩面积。
|
||||
* 2. 只需要将弹窗窗体的名称一开始传入队列即可,足够简单。
|
||||
* 3. 可设置透明度。
|
||||
* 4. 可设置遮罩层颜色。
|
||||
* 5. 不阻塞消息循坏。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
/**
|
||||
* 通用控件移动类 作者:feiyangqingyun(QQ:517216493) 2019-9-28
|
||||
* 1. 可以指定需要移动的widget
|
||||
* 2. 可设置是否限定鼠标左键拖动
|
||||
* 3. 支持任意widget控件
|
||||
* 1. 可以指定需要移动的widget。
|
||||
* 2. 可设置是否限定鼠标左键拖动。
|
||||
* 3. 支持任意widget控件。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
/**
|
||||
* 超级图形字体类 作者:feiyangqingyun(QQ:517216493) 2016-11-23
|
||||
* 1. 可传入多种图形字体文件
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体
|
||||
* 3. 可设置按钮图标
|
||||
* 4. 可获取指定尺寸的图形字体图片
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换+悬停颜色+按下颜色+选中颜色
|
||||
* 1. 可传入多种图形字体文件。
|
||||
* 2. 可设置 QLabel+QAbstractButton 图形字体。
|
||||
* 3. 可设置按钮图标。
|
||||
* 4. 可获取指定尺寸的图形字体图片。
|
||||
* 5. 超级导航栏样式设置,带图标和效果切换、悬停颜色、按下颜色、选中颜色。
|
||||
*/
|
||||
|
||||
#ifdef quc
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
|
||||
/**
|
||||
* 导航按钮控件 作者:feiyangqingyun(QQ:517216493) 2017-12-19
|
||||
* 1. 可设置文字的左侧+右侧+顶部+底部间隔
|
||||
* 2. 可设置文字对齐方式
|
||||
* 3. 可设置显示倒三角/倒三角边长/倒三角位置/倒三角颜色
|
||||
* 4. 可设置显示图标/图标间隔/图标尺寸/正常状态图标/悬停状态图标/选中状态图标
|
||||
* 5. 可设置显示边框线条/线条宽度/线条间隔/线条位置/线条颜色
|
||||
* 6. 可设置正常背景颜色/悬停背景颜色/选中背景颜色
|
||||
* 7. 可设置正常文字颜色/悬停文字颜色/选中文字颜色
|
||||
* 8. 可设置背景颜色为画刷颜色
|
||||
* 1. 可设置文字的左侧、右侧、顶部、底部间隔。
|
||||
* 2. 可设置文字对齐方式。
|
||||
* 3. 可设置显示倒三角、倒三角边长、倒三角位置、倒三角颜色。
|
||||
* 4. 可设置显示图标、图标间隔、图标尺寸、正常状态图标、悬停状态图标、选中状态图标。
|
||||
* 5. 可设置显示边框线条、线条宽度、线条间隔、线条位置、线条颜色。
|
||||
* 6. 可设置正常背景颜色、悬停背景颜色、选中背景颜色。
|
||||
* 7. 可设置正常文字颜色、悬停文字颜色、选中文字颜色。
|
||||
* 8. 可设置背景颜色为画刷颜色。
|
||||
*/
|
||||
|
||||
#include <QPushButton>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/**
|
||||
* Ntp校时类 作者:feiyangqingyun(QQ:517216493) 2017-2-16
|
||||
* 1. 可设置Ntp服务器IP地址
|
||||
* 2. 收到时间信号发出
|
||||
* 1. 可设置Ntp服务器IP地址。
|
||||
* 2. 收到时间信号发出。
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
/**
|
||||
* 全局截屏控件 作者:feiyangqingyun(QQ:517216493) 2016-11-11
|
||||
* 1. 支持鼠标右键选择菜单
|
||||
* 2. 支持全局截屏和局部截屏
|
||||
* 3. 支持图片另存为
|
||||
* 1. 支持鼠标右键选择菜单。
|
||||
* 2. 支持全局截屏和局部截屏。
|
||||
* 3. 支持图片另存为。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/**
|
||||
* 视频监控画面控件 整理:feiyangqingyun(QQ:517216493) 2019-4-11
|
||||
* 1. 目前颜色都写死在样式表,可自行更改或者拓展属性设置
|
||||
* 1. 目前颜色都写死在样式表,可自行更改或者拓展属性设置。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
/**
|
||||
* 通用视频播放控件 作者:feiyangqingyun(QQ:517216493) 2018-5-1
|
||||
* 1. 可设置边框大小
|
||||
* 2. 可设置边框颜色
|
||||
* 3. 可设置两路OSD标签
|
||||
* 4. 可设置是否绘制OSD标签
|
||||
* 5. 可设置标签文本或图片
|
||||
* 6. 可设置OSD位置 左上角+左下角+右上角+右下角
|
||||
* 7. 可设置OSD风格 文本+日期+时间+日期时间+图片
|
||||
* 8. 自定义半透明悬浮窗体,一排按钮
|
||||
* 9. 悬浮按钮可自定义设置,包括背景颜色+按下颜色
|
||||
* 10. 发送信号通知单击了哪个悬浮按钮
|
||||
* 11. 能够识别拖进来的文件,通知url
|
||||
* 12. 提供open close pause等接口
|
||||
* 1. 可设置边框大小。
|
||||
* 2. 可设置边框颜色。
|
||||
* 3. 可设置两路OSD标签。
|
||||
* 4. 可设置是否绘制OSD标签。
|
||||
* 5. 可设置标签文本或图片。
|
||||
* 6. 可设置OSD位置 左上角、左下角、右上角、右下角。
|
||||
* 7. 可设置OSD风格 文本、日期、时间、日期时间、图片。
|
||||
* 8. 自定义半透明悬浮窗体,一排按钮。
|
||||
* 9. 悬浮按钮可自定义设置,包括背景颜色+按下颜色。
|
||||
* 10. 发送信号通知单击了哪个悬浮按钮。
|
||||
* 11. 能够识别拖进来的文件,通知url。
|
||||
* 12. 提供open close pause等接口。
|
||||
*/
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
/**
|
||||
* 汉字转拼音类 作者:feiyangqingyun(QQ:517216493) 2019-2-16
|
||||
* 1. 汉字转拼音
|
||||
* 2. 汉字转拼音简拼
|
||||
* 3. 汉字转拼音首字母
|
||||
* 1. 汉字转拼音。
|
||||
* 2. 汉字转拼音简拼。
|
||||
* 3. 汉字转拼音首字母。
|
||||
*/
|
||||
|
||||
#include <QObject>
|
||||
|
||||
Reference in New Issue
Block a user