标题:关于IOS开发的问题
作者:nikonice
日期:2018-04-10 14:01
内容:
在Qt for IOS下开发,想把数据库文件打包到手机了,然后对其进行访问。请问如下图这样可以将文件打包到手机里吗?
然后对文件进行访问可以这么写吗?
QFile dbfile("qrc:/data/GstFireSystem.db");
#1 [nikonice 04-10 15:11]
已经解决,分享下
#ifdef Q_OS_IOS
qWarning()
#2 [hpplel 06-06 09:42]
请教楼主~
qWarning()
#3 回 hpplel 的帖子 [hpplel 06-06 10:59]
hpplel:请教楼主~
qWarning()
#4 [nikonice 06-26 14:36]
需要把db拷贝到其他地方,然后把读写权限加上
assets下db是只读的
#5 [XChinux 02-27 11:32]
用QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)