Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_itemviews_qdatawidgetmapper.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Functions

mapper setModel (model)
 
mapper addMapping (mySpinBox, 0)
 
mapper addMapping (myLineEdit, 1)
 
mapper addMapping (myCountryChooser, 2)
 
mapper toFirst ()
 
mapper setModel (myModel)
 
mapper addMapping (nameLineEdit, 0)
 
mapper addMapping (ageSpinBox, 1)
 
 connect (myTableView->selectionModel(), &QItemSelectionModel::currentRowChanged, mapper, &QDataWidgetMapper::setCurrentModelIndex)
 

Variables

QDataWidgetMappermapper = new QDataWidgetMapper
 [0]
 

Function Documentation

◆ addMapping() [1/5]

mapper addMapping ( ageSpinBox ,
1  )

◆ addMapping() [2/5]

mapper addMapping ( myCountryChooser ,
2  )

◆ addMapping() [3/5]

mapper addMapping ( myLineEdit ,
1  )

◆ addMapping() [4/5]

mapper addMapping ( mySpinBox ,
0  )

◆ addMapping() [5/5]

mapper addMapping ( nameLineEdit ,
0  )

◆ connect()

connect ( myTableView-> selectionModel(),
&QItemSelectionModel::currentRowChanged ,
mapper ,
&QDataWidgetMapper::setCurrentModelIndex  )

◆ setModel() [1/2]

mapper setModel ( model )

◆ setModel() [2/2]

mapper setModel ( myModel )

◆ toFirst()

mapper toFirst ( )

Variable Documentation

◆ mapper