Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

[iOS][Qt 5.2]QFile doesnt create new file

$
0
0
Hi, I got a problem i cannot create new file on iPad. There is the code: QFile tf("abc.txt"); tf.open(QIODevice::ReadWrite); tf.write("TEST"); tf.close(); if(QFile::exists("abc.txt"))     qDebug()<<"abc.txt exists"; else     qDebug()<<"abc.txt doesnt exists"; I keep getting abc.txt doesnt exists in debug console. I have no idea why, the code works on linux, mac and android, so why doesnt it work on iOS. Thanks EDIT: I forgot to mention I alse get this: “QIODevice::write: device not open” I believe application doesnt have permission to write on iPad but what should i do to set it?

Viewing all articles
Browse latest Browse all 13965

Trending Articles