PDA

View Full Version : QTableView - Add Row



maxpower
24th November 2006, 19:13
I am using the QTableView in Qt 4.2.1 to display a table from a MySQL DB. Previously I have used dialogs to add rows to the table. However, with a new table I would like the user to be able to add rows with the QTableView interface. Is this possible or can rows only be added more manually (dialogs and such).

Thanks
mAx

jpn
24th November 2006, 19:18
Well, you can always provide for example context menu actions (http://doc.trolltech.com/4.2/qwidget.html#contextMenuPolicy-prop) and/or shortcuts (http://doc.trolltech.com/4.2/qshortcut) for doing such. :)