PDA

View Full Version : QTemporaryFile stays locked even after calling close()



Tiansen
20th May 2010, 13:47
Hello,

I create QTemporaryFile object and then write some data to it (PDF document). After calling close() I want to open it with Adobe Reader (because there is no way to show PDF file to user using Qt only). What bugs me is why file stays locked even when I call close() function on it? So Adobe Reader cannot open it. I cannot open it with Wordpad either. I can copy it however. Any clues how to solve this?

Thanks!

borisbn
20th May 2010, 14:35
I had the same problem, and I decided, that it's Qt's bug. Write to Qt's buglist