Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.10.1
-
None
-
Qt Creator 4.5.1
Based on Qt 5.10.1 (GCC 7.3.0, 64 bit)
C:\Windows\System32>ver
Microsoft Windows [Version 10.0.16299.248]
Description
When mapping a widget to a model, QDataWidgetMapper::mappedPropertyName returns an empty "" string if the property is not specified during addMapping(). This behavior is incorrect because although you don't specify the property, a default one is selected for you. The documentation also makes no mention that the empty string is returned in this case.
http://doc.qt.io/archives/qt-4.8/qdatawidgetmapper.html#mappedPropertyName