Thanks, I solved that part by not using the persistent editor at all as that seemed to interrupt things. Instead I just use the mousePressEvent on the table to make single clicks edit the cells. Then I have the delegate's setModelData method deal with bulk editing selected rows. This seems to work really well and is quite transparent in the code so I am happy for now.
Thanks for holding my hand! frank On Wed, Aug 31, 2022 at 3:54 AM David Ching <d...@dcsoft.com> wrote: > Even if you got the right click to actually set focus to the combo box on > one item, I am not sure the user would find that intuitive. Right-clicking > usually brings up a context menu. On deeper thought, it seems to be a > conflict of using the persistent editor with a selection of multiple items. > It's not standard. I would instead propose: > > Insert a first column of checkmark controls. Selecting an item checks this > checkbox. In the end, multiple selections will have checkmarks. Then you > can single click a combo box as normal, change the selection, and have it > apply to all the items with checkmarks. Would that work for you? > > Thanks, > David > > > > From: PySide <pyside-boun...@qt-project.org> On Behalf Of Frank Rueter > > Sent: Friday, August 26, 2022 3:05 AM > > Subject: Re: [PySide] editing selected cells in QTabelWidget > > > So I made some progress but am now having the problem that a right click > > on a persistent editor (combo box) will lose the current table > selection. > > > [...] > > > >
_______________________________________________ PySide mailing list PySide@qt-project.org https://lists.qt-project.org/listinfo/pyside