Hi, @4j1th
I apologize for not answering your question. I just didn't see it.
Let's try to figure out what the problem is. I suggest you always to check result after open any QIODevice object.
So, you should try smth like this:
if (!cryptFileDevice.open(QIODevice::ReadOnly))
{
qCritical() << "Cannot open cryptFileDevice";
}
if (!file.open(QIODevice::WriteOnly))
{
qCritical() << "Cannot open file";
}
Please, try it and write me the result.
Best regards, Aleksey.