Hi guys, good news
I search on the net and I found some ideas nearly a QSqlRelationalDelegate, so I create a subclass and I modify the realationaltablemodel Qt example to test it. I attach my example so you can test it.
If you add a new city to Oslo, Munich and San Jose such as "New York", the city will be added to the list, but not immediatly selected for the employee record. But, if you select "New York" from the list, it will be saved into employee record
How can avoid the double selection of the city and select it for the employee record, at the first confirm after the adding of the city?
Thanks a lot for your time.
Michele





Reply With Quote
Bookmarks