def handler resp print uru manager QNetworkAccessManage QObject connec

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
def handler(resp):
print 'uru'
manager = QNetworkAccessManager()
QObject.connect(manager, SIGNAL('finished(QNetworkReply*)'), handler)
url = QUrl('http://proisk.ru/?view=xml&on_page=100&q=blink')
req = QNetworkRequest(url)
resp = manager.get(req)