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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Mar 26 18:23:41 BST 2007


Thiago Macieira schrieb:
> Christian Ehrlicher wrote:
>> Because we can't distinguish between those two handle types, our
>> functions which are using QFile::handle() don't work. This breaks
>> especially the emulated posix functions in kdewin32 library which is
>> needed for kdelibs/win32 compilation.
>>
>> -->
>> QFile::handle() should not return win32 handle because this breaks BC.
> 
> Regardless of the status as a Qt bug, we shouldn't be relying on 
> QFile::handle() at all.
> 
> Any chance the code can be fixed to not use that?
> 
Don't think there's an easy workaround. It's used for mmap:

QFile f("foo.txt");
f.open()
mmap(..., f.handle(), ...)


I've changed our mmap() impl. which seems to work.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070326/f6fb4fb5/attachment.sig>


More information about the kde-core-devel mailing list