[Fwd: Qt4.3 - important regression with QFile::handle() on win32]

Thiago Macieira thiago at kde.org
Mon Mar 26 21:20:35 BST 2007


Richard Moore wrote:
>I don't see why - either f.handle() should work or there's a Qt bug. I
>don't see how this is any different from using a window handle or a
>graphics context.

It's a handle, but what's a handle?

Qt makes no guarantees or explicit definitions what it is or how it's 
found. On Unix, we're reasonably sure it's the file descriptor. But on 
Windows, like Christian is reporting, it could be a file descriptor from 
the POSIX emulation layer or it could be the actual HANDLE object.

Like I said, regardless of whether this is a regression in Qt or not, we 
don't know what a handle is and we shouldn't be making assumptions about 
it being a POSIX-style file descriptor.

-- 
  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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070326/bff5a7c6/attachment.sig>


More information about the kde-core-devel mailing list