Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
由于Qt5在2023年5月26日已终止支持,LTS版本也于2025年5月26日终止支持,将该项目迁移到Qt6以便于后续的开发和使用
迁移到Qt6后,由于一些旧特性的移除和变化,对代码作了以下修改:
<QRegExpValidator>模块在Qt6中被移除,已改用<QRegularExpressionValidator>qsrandqrand等随机数函数,为尽量减少修改,改用了C语言的srandrandQTime::start(),程序中的计时改用QElapsedTimer实现其中的
qApp->quit();在Qt6会导致递归调用,现改用QTimer::singleShot(0, qApp, SLOT(quit()));延迟退出解决此问题以下是由于旧函数弃用导致的编译时警告,也进行了修改:
Qt::AA_EnableHighDpiScaling属性已弃用QCryptographicHash::addData(const char* data, qsizetype length),现将长度删除,不传入参数,字符串常量将直接作为QByteArray处理QByteArrayView现在,你可以自行通过Qt6编译该项目,或由于原作者已长期不维护该项目,你可以选择前往我的分支 https://github.com/KnCRJVirX/drcom-jlu-qt/ 体验新的特性(可选不弹出校园网之窗、密码加密存储等)