How could I use QDataWidgetMapper in this situation?
Class TElement contains some members. And all of them belong to the same section of the model.
From the description of function QDataWidgetMapper::addMapping: "Only one-to-one mappings between sections and widgets are allowed. It is not possible to map a single section to multiple widgets..."
So, I can't use the construction like:
	
	mapper->addMapping(nameLineEdit, 0);
        mapper->addMapping(nameLineEdit, 0);
To copy to clipboard, switch view to plain text mode 
  Maybe, there are some other ways?
Added after 7 minutes:
Is it possible to use one QWidget as a container for all these QLineEdits and other controls?
Then
	
	mapper->addMapping(MyWidget, 0);
        mapper->addMapping(MyWidget, 0);
To copy to clipboard, switch view to plain text mode 
  But I have no idea how to put the fields to the appropriate controls (f.e. m_pElement->Name to MyWidget->leName).
appMapping is not reimplemented.
				
			
Bookmarks