I was reading this tutorial:
http://www.tuxradar.com/content/code-project-create-qt-rss-reader
and tried to create RSS feed reader in QT Creator.
As this article was wrote a years ago, I met a problems (see on img. or visit URL):
https://drive.google.com/file/d/0B1jfkoUAwYVhQTlOdGVjdS1sbDQ/edit?usp=sharing
As I understand: the whole problem in that, that "QHttpResponseHeader" and "QHttp" is too old and do not using for years in QT. I don't know how to fix that problem, though I tried.
How to fix a problem?
My project (with inline editor to open "h" and "cpp" files): http://1drv.ms/1njxfIy
Asked
Active
Viewed 1,420 times
1

Community
- 1
- 1

Pavlo Zvarych
- 615
- 2
- 9
- 13
2 Answers
1
You will need to add this to your project file:
QT += http
and you need to install the corresponding add-on module from either here or your package distributor.

László Papp
- 51,870
- 39
- 111
- 135
-
I, already, trying for 2 hours to install that module. How can I do this? – Pavlo Zvarych May 21 '14 at 08:21
-
1@PavloZvarych: `git clone git@gitorious.org:qt/qthttp.git && cd qthttp && qmake -r && nmake && nmake install` if you happen to use msvc. – László Papp May 21 '14 at 08:22
-
Got a few problems. Some problems I already resolved, but this one, - unfortunately, - no: "Project ERROR addExclusiveBuilds() requires at least two arguments". – Pavlo Zvarych May 21 '14 at 15:58
-
@PavloZvarych: I do not know how that is related to the question. – László Papp May 21 '14 at 16:08
-
it's all about solving project problems. This "Project ERROR ..." message I got in Git Bash while trying to install add-on module. Any way, thank you for efforts! – Pavlo Zvarych May 22 '14 at 06:39
1
I had the same problem, with the solution, I tried modify some steps. First of all I put the sequency into bash
sudo git clone git://gitorius.org/qt/qthttp.git
cd qthttp/
sudo qmake -r
sudo make
sudo make install
Its the same solution of Final Contest. So, with that the problem for me continued. In the code of tuxradar.com I replaces in the .pro file the sequency
QT += xml\
network\
webkitwidgets\
http\
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
The rest of the code (.pro) still the same. Into .h file I replaces #include <QGui/QMainWindow>
by #include <QMainWindow>
and I insert #include <QHttp>
#include <QUrl>
. Was that, sorry by my english. :)

Tiago F. Miranda
- 11
- 1