User Tools

Site Tools


info:qt_database_application

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
info:qt_database_application [2009-05-28 04:53]
adminsam editing
info:qt_database_application [2009-06-02 14:32] (current)
sam ReadOnlyTableModel
Line 17: Line 17:
 ui.eventTableView->​hideColumn(0);​ ui.eventTableView->​hideColumn(0);​
 </​code>​ </​code>​
 +
 +===== Read-only Table Model =====
 +Here's a simple example of how to make ''​QSqlTableModel''​ read-only (though you could also just use a ''​QSqlQueryModel'',​ if you want //all// fields to be read-only): see [[Qt ReadOnlyTableModel]]. Of course the same concept could be used to make just some of the fields read-only.
  
 ===== Sorting the Model/View ===== ===== Sorting the Model/View =====
info/qt_database_application.txt · Last modified: 2009-06-02 14:32 by sam