http::http(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags){ m_Http = new QHttp(this); m_Http->get("", &m_Buffer); connect(m_Http, SIGNAL(requestFinished(int, bool)), this, SLOT(requestFinished(int, bool)));}void http::requestFinished(int id, bool error) { if (error) QMessageBox::information(this, "Error",m_Http->errorString());}
m_Http->errorString()
qApp->translate("QHttp", m_Http->errorString().toAscii().constData())