JPEG Thumbnailer

Thiago Macieira thiago at kde.org
Wed Aug 20 18:07:44 BST 2008


On Wednesday 20 August 2008 18:49:11 Andre Gemünd wrote:
> Hello everyone,
> it's a delight to read this discussion, but about the original issue, what
> is the conclusion I should draw now. Is the file buffer
> also closed when the QFile leaves scope, although I fdopened it's handle?
> Or should I use auto_ptr with a custom delete, or should I even use a class
> that closes the file in its destructor? :)

Just do whatever you were doing, but use QFile::encodeName(filename) to 
convert from QString to the char* that fopen uses.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080820/d82b4eac/attachment.sig>


More information about the kde-core-devel mailing list