[Qt-interest] copy a file to a directory

Smita_Srivastava Smita_Srivastava at Satyam.com
Tue Dec 2 06:24:26 CET 2008


hey how to write a picture file to any directory.... Its ok that i can read the files thru readLine..but how to read a picture file.
NOte: readall is not available with qt-3.3. Please give me any hint in qt-3.3,.. M really stuck up

Regards,
smita
________________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of Malte Witt [malte.witt at sieb-meyer.de]
Sent: Monday, December 01, 2008 2:39 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] copy a file to a directory

> I am working with QT Designer 3.3 and there is no such method as
*shudder* - No chance to upgrade?

> "copy" for Qfile.
> Please tell me some other way
What about opening the source file (using QFile) in ReadOnly mode and then
open the destination file (also as QFile) in WriteOnly mode and then copy
the data (i.e. using a QDataStream or just the plain QFile::readAll()
method) manually?

Regards,
Malte
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.




More information about the Qt-interest-old mailing list