Hello,
I have a code to dump data from QCPBars :
for(int i=0; i<plottableCount(); i++) { if(QCPBars * bar = qobject_cast<QCPBars *>(plottable(i))) { QFile file(directory + "/" + graph(i)->name().replace("/", "_") + ".txt"); if(!file.open(QIODevice::WriteOnly | QIODevice::Text)) { return; } QTextStream out(&file); out.setLocale(c); for(QCPBarsDataContainer::const_iterator iter=bar->data()->constBegin(); iter!=bar->data()->constEnd(); ++iter) out << iter->mainKey() << iter->mainValue() << "\n"; } }
But now, instead of dumping the key from the QCPBars, I would like to get the corresponding QString value of the xAxis on which I have installed a QCPAxisTickerText. Could you give me ideas to do that ?
Thanks !