I use QDataWidgetMapper to map data to QLineEdit and it works great. When I use to map data in QLabel, it does not show any data in the shortcut. I am trying to do it like this:
QDataWidgetMapper *testMapper=new QDataWidgetMapper(); testMapper->setOrientation(Qt::Vertical); testMapper->setModel(testModel);
I get the values ββfrom the list and attach the list to the QDataWidgetMapper, from the mapping I use addMapping to add it to the text fields. Can someone tell me why it is not working with qLabels.
Valla source share