Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, September 2002
QUrlOperator op.copy()


Message 1 in thread

Hello list,


Thank's to documentation examples, I can download a BMP picture file to 
disk using QUrlOperator op.copy() and FTP protocol.

But I am still far away from what I need to accomplish as that picture 
should never be copied to disk but to memory - then displayed as a 
preview using a QWidget item in a QDialog.

So the first question is: how do we download data to memory instead of file?

And the next question is: how do we display picture data just downloaded 
to memory (as a QByteArray I suppose) to a QWidget item?

Thank's in advance for any help.

Best regards

Patrick Perroud


Message 2 in thread

On Sunday 01 September 2002 10:59, Patrick Perroud wrote:
> Hello list,
>
>
> Thank's to documentation examples, I can download a BMP picture file to
> disk using QUrlOperator op.copy() and FTP protocol.
>
> But I am still far away from what I need to accomplish as that picture
> should never be copied to disk but to memory - then displayed as a
> preview using a QWidget item in a QDialog.

use op.get() and relevant signals

>
> So the first question is: how do we download data to memory instead of
> file?
>
> And the next question is: how do we display picture data just downloaded
> to memory (as a QByteArray I suppose) to a QWidget item?

	i do nat like QByteArray but it is ako. buffer -> copy to appropriete buffer

>
> Thank's in advance for any help.
>
> Best regards
>
> Patrick Perroud