| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 3 | |
Hi all, With Qt3 QFile had a method handle() which returned an integer with the bare file handle of an open file. I am looking for something like this in Qt4. Best regards, Andre -- [ signature omitted ]
What's wrong with Qt4's "int QFile::handle()" ? Regards, Malte -- [ signature omitted ]
On Mon, Apr 14, 2008 at 03:56:28PM +0200, Malte Witt wrote: > What's wrong with Qt4's "int QFile::handle()" ? Nothing, i was just to blind to see the forrest for the trees ;-) Thanks, Andre -- [ signature omitted ]
Andre Haupt schrieb: > On Mon, Apr 14, 2008 at 03:56:28PM +0200, Malte Witt wrote: >> What's wrong with Qt4's "int QFile::handle()" ? > Nothing, i was just to blind to see the forrest for the trees ;-) > Be aware that this function does return -1 when opening a QFile in windows. It only returns a valid file handle when using bool QFile::open ( FILE * fh, OpenMode mode ) or bool QFile::open ( int fd, OpenMode mode ) The documentation does not mention this with a single word. :( Christian -- [ signature omitted ]
Andre Haupt schrieb: > On Mon, Apr 14, 2008 at 03:56:28PM +0200, Malte Witt wrote: >> What's wrong with Qt4's "int QFile::handle()" ? > Nothing, i was just to blind to see the forrest for the trees ;-) > And while I write this and read the source of Qt 4.3.4 I saw that it was fixed. Strange - I'm sure it was rejected when I wrote to qt-bugs some months ago... Sorry for the noise, Christian -- [ signature omitted ]
Christian Ehrlicher wrote: >Andre Haupt schrieb: >> On Mon, Apr 14, 2008 at 03:56:28PM +0200, Malte Witt wrote: >>> What's wrong with Qt4's "int QFile::handle()" ? >> >> Nothing, i was just to blind to see the forrest for the trees ;-) > >And while I write this and read the source of Qt 4.3.4 I saw that it was >fixed. Strange - I'm sure it was rejected when I wrote to qt-bugs some >months ago... It's broken on Windows. I'm going to fix it for 4.4.1. -- [ signature omitted ]
Attachment:
signature.asc
Description: This is a digitally signed message part.