PDA

View Full Version : How to downloads files?



Lycus HackerEmo
21st February 2010, 05:12
I am creating a program; the program should do is downloads Mangas of the web pages of Submanga (http://submanga.com/).
I was told to wear QNetworkAccessManager:: get but not how to use it.

I'm basing on the program gestSubmanga (http://tuxmaya.wordpress.com/2010/01/11/gestsubmanga/) what written in Java.

I've only created the graphical interface and was wondering if someone could help me with the program?

squidge
21st February 2010, 09:13
It tells you how to use it in the documentation, including the link you posted.

Lycus HackerEmo
21st February 2010, 21:10
The documentation also says: " This class is not part of the Qt Gui Framework Edition" and is the one I'm using.

squidge
21st February 2010, 22:02
Then you either need to upgrade to the Full Framework edition, or write the network stuff yourself.

Lycus HackerEmo
21st February 2010, 22:16
already solved


#include </home/usuario/qtsdk/qt/include/QtNetwork/QNetworkAccessManager>

buit still do not know how to use this function to downloads files.

squidge
21st February 2010, 22:24
You say above that you are using the "Qt Gui Framework Edition" which doesn't support networking, so what does it matter?

But if you were using the Full Framework Edition, you would use it as stated in the documentation (which includes examples). What bit don't you understand?

Lycus HackerEmo
22nd February 2010, 20:36
what makes ignorance. to creating a new project, leave it by default, and do no check QNetwork.

but continuing the theme, do not know one example that demonstrates what i do?

squidge
22nd February 2010, 22:17
Ok... Lets try this again. Under "Detailed Description" in the documentatio of QNetworkAccessManager there are examples. There are also download manager examples in the Qt distribution which use the same QNetworkAccessManager.

What part of the example do you not understand?

And secondly, have you now upgraded from GUI Edition to Full Edition, as the GUI edition does not support QNetworkAccessManager, as also stated in the documentation.

Lycus HackerEmo
23rd February 2010, 05:10
What part of the example do you not understand?

example: one paste a link to TextEdit and click the button is given to download and the file downloads.
As you would copy link to QNetWorkAccessManager?


And secondly, have you now upgraded from GUI Edition to Full Edition, as the GUI edition does not support QNetworkAccessManager, as also stated in the documentation.

not if Gui Edition or Full Edition. i download the LGPL to Linux. This (http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp)

squidge
23rd February 2010, 08:11
Sounds to me like you want to look at the network/http example, which shows you how to accept a URL, and then download that file by clicking the Download button. Did you view this example?

Lycus HackerEmo
23rd February 2010, 09:28
Sounds to me like you want to look at the network/http example, which shows you how to accept a URL, and then download that file by clicking the Download button

yes. actually want to do that.


Did you view this example?

which example?

not very good english, so it makes me a little.

squidge
23rd February 2010, 11:30
The network/http example. Ie, the 'http' example in the 'network' folder of your Qt installation, in the 'examples' directory.

mgoetz
24th February 2010, 11:50
The http example is using QHttp which is deprecated.
Look at the download example.