Hi!!, sorry for this question that is newbie, recently i'm learning this Report generator and is amazing.
I have a QTreeWidget with a QDoubleSpinBox inside
In this topic
topic i did learn how to send data from Widget to the report, I can send all, except the last field (SpinBox)
I did try with a casting sending value of SpinBox to a QAbstractItemModel
LimeReport::ReportEngine *Ticket =new LimeReport::ReportEngine(this);
Ticket->dataManager()->addModel("treeWidget",ui->TrWVenta->model(),false);
QAbstractItemModel *ModCant;
ModCant=dynamic_cast<QAbstractItemModel*>(ui->TrWVenta->itemWidget(Item,3));
Ticket->dataManager()->addModel("Cantidad",ModCant,true);
Ticket->designReport();
But in data manager I get only this (with red circle) and I cannot view any data
How can send data from QDoubleSpinBox to the report??
Thanks and sorry for my bad english!!