[Qt-interest] Why nothing finer than a sql table model?

Timothy Reaves treaves at silverfieldstech.com
Sun Dec 13 01:51:47 CET 2009


	Does anyone have any reference on work that shows a good way to wire UI widgets to a SQL backend?  The QSqlTableModel works well, but it's only for a table.  In Cocoa, their array models have a 'selected' slot that allows you to bind widgets to the selected row in the table.  It doesn't seem Qt has a similar concept.

	I'm wiring each widget manually, and need to copy from / into QSqlRecord objects, then set those back into the QSqlTableModel.  Very time consuming, and error prone!

	What are other options?  Are there third-party libraries for working with this?



More information about the Qt-interest-old mailing list