如何做一个获取网页源码的东西
本帖最后由 oXiFangShiBai 于 2013-01-22 21:38:59 编辑 小弟学qt没多久,想做一个小东西
一个pushbutton 一个textedit
点击按钮以后,软件获取百度的源码,然后显示在textedit里
我用QNetworkAccessManager 按照官方的在线手册弄 就是不行
http://qt-project.org/doc/qt-5.0/qtnetwork/qnetworkaccessmanager.html
QNetworkAccessManager *manager = new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(replyFinished(QNetworkReply*)));
manager->get(QNetworkRequest(QUrl("http://qt.nokia.com")));
D:\My Documents\Qt5Pro\dddd\main.cpp:11: 错误:invalid use of 'this' in non-member function