Re: Getting Chart as picture
Http Request with all the data->Reply data result in QByteArray->convert data to pixmap->display
Simulate the process with Http debugger to see what is going on with the requests and replies and simulate it with Qt.
Re: Getting Chart as picture
Hi
Try this
Code:
{
ui->setupUi(this);
QHttpRequestHeader header
("POST",
"/chart?cht=p3&chf=bg,s,65432100&chd=t:60,40&chs=250x100&chl=Hello|World");
header.setValue("Host","chart.apis.google.com");
http->setHost("chart.apis.google.com");
http->request(header, *chart);
connect(http, SIGNAL(done(bool)), this, SLOT(showChart()));
}
void Widget::showChart()
{
*chart = http->readAll();
chartPixmap.loadFromData(*chart);
ui->label->setPixmap(chartPixmap);
}
Greetings!
Re: Getting Chart as picture
I will try it asap really thank you very much for this suggestion ;o))
Re: Getting Chart as picture
Its works wow great thing..... thx thx thx thx