c++ - How to update QDataWidgetMapper items without focus -
i have several qlineedits, each connecting single qstandarditemmodel via own qdatawidgetmapper, reflect same value.
this works great if user inputs value in 1 qlineedit - when qlineedit loses focus, model updated , other qlineedits show same value.
however, want set values in 1 qlineedit via qlineedit::settext, , not make qlineedit lose focus. manually call submit on qdatawidgetmapper, requires setting access mapper i'd rather avoid if can it, in class.
is there way set text in qlineedit if user has entered it, example, qdatawidgetmapper submit?
this easier thought. when set mapper up, can connect qlineedit's textchanged signal submit slot of mapper.
Comments
Post a Comment