Results 1 to 2 of 2

Thread: QTemporaryFile stays locked even after calling close()

  1. #1
    Join Date
    Feb 2008
    Posts
    79
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default QTemporaryFile stays locked even after calling close()

    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!

  2. #2
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTemporaryFile stays locked even after calling close()

    I had the same problem, and I decided, that it's Qt's bug. Write to Qt's buglist

Similar Threads

  1. QTemporaryFile and his destructor
    By SABROG in forum Qt Programming
    Replies: 3
    Last Post: 19th May 2009, 19:55
  2. QTemporaryFile and Qfile::copy()
    By ChrisW67 in forum Newbie
    Replies: 2
    Last Post: 23rd April 2009, 23:32
  3. QHttp and QTemporaryFile
    By maximAL in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2009, 14:06
  4. QTemporaryFile problems
    By C167 in forum Qt Programming
    Replies: 11
    Last Post: 22nd June 2008, 09:54
  5. Removing locked attribute on Mac locked files?
    By gfunk in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2007, 22:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.