• 大小: 3.23MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-13
  • 语言: 其他
  • 标签: QT5  QML  C++  控件  

资源简介

QT开发的小工具包,包含一些QT GUI开发相关的功能何及,有文本类,计算类,工具类,可以作为学习或者基础进行修改定制;

资源截图

代码片段和文件信息

/*
    This file is part of JQTools

    Project introduce: https://github.com/188080501/JQTools

    Copyright: Jason

    Contact email: Jason@JasonServer.com

    GitHub: https://github.com/188080501/
*/

#include “hashcalculate.h“

// Qt lib import
#include 
#include 
#include 

using namespace HashCalculate;

void Manage::setSource(const QString &string)
{
    source_ = string;
    emit sourceChanged();
}

void Manage::resetSource()
{
    source_.clear();
    emit sourceChanged();
}

void Manage::resetTarget()
{
    target_.clear();
    emit targetChanged();
}

void Manage::pause()
{
    source_ = this->clipboardText();
    emit sourceChanged();
}

void Manage::clear()
{
    source_.clear();
    target_.clear();
    emit sourceChanged();
    emit targetChanged();
}

void Manage::copy()
{
    this->setClipboardText( target_ );
}

void Manage::cut()
{
    source_ = target_;
    target_.clear();
    emit sourceChanged();
    emit targetChanged();
}

void Manage::calculateTobase64()
{
    target_ = source_.toUtf8().tobase64();
    emit targetChanged();
}

void Manage::calculateFrombase64()
{
    target_ = QByteArray::frombase64( source_.toUtf8() );
    emit targetChanged();
}

void Manage::calculateMD4()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Md4 ).toHex();
    emit targetChanged();
}

void Manage::calculateMD5()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Md5 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha1()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha1 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha224()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha224 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha256()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha256 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha384()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha384 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha512()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha512 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha3_224()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha3_224 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha3_256()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha3_256 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha3_384()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha3_384 ).toHex();
    emit targetChanged();
}

void Manage::calculateSha3_512()
{
    target_ = QCryptographicHash::hash( source_.toUtf8() QCryptographicHash::Sha3_512 ).toHex();
    emit targetChanged();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        548  2018-12-14 15:02  JQTools-master\.gitignore

     文件        239  2018-12-14 15:02  JQTools-master\components\CalculateGroup\CalculateGroup

     文件        525  2018-12-14 15:02  JQTools-master\components\CalculateGroup\calculategroup.h

     文件        388  2018-12-14 15:02  JQTools-master\components\CalculateGroup\CalculateGroup.pri

     文件        238  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\cpp\HashCalculate

     文件       2986  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\cpp\hashcalculate.cpp

     文件       1713  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\cpp\hashcalculate.h

     文件        380  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\HashCalculate.pri

     文件       8755  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\qml\HashCalculate.qml

     文件        109  2018-12-14 15:02  JQTools-master\components\CalculateGroup\HashCalculate\qml\HashCalculate.qrc

     文件        243  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\cpp\TimestampTransform

     文件        899  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\cpp\timestamptransform.cpp

     文件       1135  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\cpp\timestamptransform.h

     文件       1745  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\qml\TimestampTransform.qml

     文件        119  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\qml\TimestampTransform.qrc

     文件        395  2018-12-14 15:02  JQTools-master\components\CalculateGroup\TimestampTransform\TimestampTransform.pri

     文件        470  2018-12-14 15:02  JQTools-master\components\components.pri

     文件        380  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\BarcodeMaker.pri

     文件        237  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\cpp\BarcodeMaker

     文件       2041  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\cpp\barcodemaker.cpp

     文件       1196  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\cpp\barcodemaker.h

     文件       2139  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\qml\BarcodeMaker.qml

     文件        107  2018-12-14 15:02  JQTools-master\components\MakeGroup\BarcodeMaker\qml\BarcodeMakerQml.qrc

     文件        234  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\cpp\FontToPng

     文件      11850  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\cpp\fonttopng.cpp

     文件       2314  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\cpp\fonttopng.h

     文件        412  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\FontToPng.pri

     文件      10333  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\qml\FontToPng.qml

     文件        101  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\qml\FontToPng.qrc

     文件      79556  2018-12-14 15:02  JQTools-master\components\MakeGroup\FontToPng\Resource\Font\Elusive\Elusive.ttf

............此处省略872个文件信息

评论

共有 条评论