Re: [Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-27 Thread K. Frank
Hello Tony! Thanks for your pointers on how to hook the delegates and views together. At the moment it looks like things are working the way I want. On Tue, Jun 26, 2012 at 10:06 PM, Tony Rietwyk t...@rightsoft.com.au wrote: Hi Frank, ... And how, specifically, do I associate a delegate with

Re: [Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-26 Thread K. Frank
Hi Tony! Thanks for your follow-up questions. I've tried to answer them in line, below. Before I do, please let me quickly summarize what I think my question is. I think I have to get my hands on the appropriate existing delegate. (I don't actually know whether the delegate is associated

Re: [Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-26 Thread K. Frank
Hello Tony! Thanks again. I do have some follow-up questions. On Tue, Jun 26, 2012 at 12:28 PM, Tony Rietwyk t...@rightsoft.com.au wrote: Hi Frank, I haven't used QItemEditorFactory.  My reading of the docs suggests this only applies if all of your strings are to be edited via the same

[Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-25 Thread K. Frank
Hello List! I have a QTableView and I would like to use a QComboBox to insert and modify its entries. I'm looking for the simplest way to do this that uses as much unmodified Qt functionality as possible. At the moment I am thinking that I can use the class template QStandardItemEditorCreator

Re: [Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-25 Thread Tony Rietwyk
Hi Frank, What does the standard delegate do for your model/view at the moment? I can't recall the specifics, but it certainly uses combo boxes at the moment - eg, for boolean fields (which I think is painful, but anyway). I think you need to give more information about what you are