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

Richard Moore richmoore44 at gmail.com
Tue Mar 27 00:20:37 BST 2007


On 3/26/07, Thiago Macieira <thiago at kde.org> wrote:
> 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.

I don't see how this is different for a window handle or a graphics context.

>
> 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.

But as I said above, we make assumptions about the handles of other
types of object. I really don't see why it should be a special case.

Cheers

Rich.




More information about the kde-core-devel mailing list