We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现阶段, B4X 各版本均把用户数据存储在程序所在目录下,这不利于调试程序(切换 debug / release 、切换构建套件或 distclean 后)、升级版本时对于数据的保留。
我建议使用 QStandardPaths 进行改良。 其好处是,能保证程序所在目录的干净以及用户数据的独立性; 可能造成的问题是,如果不同版本间的数据不兼容,就需要在程序中做处理。
QStandardPaths
另外,如果已将用户数据移动到程序所在目录之外,就可以考虑提供“清除用户数据”和“导出用户数据”的功能。其中“导出用户数据”功能的实现效果可以为“使用类似资源管理器的程序定位到用户数据所在文件夹”(在 Windows 上为explorer /select,"path")。
explorer /select,"path"
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
现阶段, B4X 各版本均把用户数据存储在程序所在目录下,这不利于调试程序(切换 debug / release 、切换构建套件或 distclean 后)、升级版本时对于数据的保留。
我建议使用
QStandardPaths
进行改良。其好处是,能保证程序所在目录的干净以及用户数据的独立性;
可能造成的问题是,如果不同版本间的数据不兼容,就需要在程序中做处理。
另外,如果已将用户数据移动到程序所在目录之外,就可以考虑提供“清除用户数据”和“导出用户数据”的功能。其中“导出用户数据”功能的实现效果可以为“使用类似资源管理器的程序定位到用户数据所在文件夹”(在 Windows 上为
explorer /select,"path"
)。The text was updated successfully, but these errors were encountered: