|
| QSqlRelationalDelegate (QObject aParent=null) |
| More...
|
|
override void | CreateProxy () |
|
override QWidget | CreateEditor (QWidget aParent, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
override void | SetEditorData (QWidget editor, QModelIndex index) |
| More...
|
|
override void | SetModelData (QWidget editor, QAbstractItemModel model, QModelIndex index) |
| More...
|
|
new void | Dispose () |
|
| QItemDelegate (QObject parent=null) |
| More...
|
|
override bool | OnEditorEvent (QEvent @event, QAbstractItemModel model, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
override bool | EventFilter (QObject @object, QEvent @event) |
| More...
|
|
override void | Paint (QPainter painter, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
override QSize | SizeHint (QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
override void | UpdateEditorGeometry (QWidget editor, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
new void | Dispose () |
|
| QAbstractItemDelegate (QObject parent=null) |
| More...
|
|
new bool | OnHelpEvent (QHelpEvent @event, QAbstractItemView view, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
new void | Dispose () |
|
| QObject (QObject parent=null) |
| More...
|
|
new bool | BlockSignals (bool b) |
| More...
|
|
new bool | Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
| More...
|
|
new void | DeleteLater () |
| More...
|
|
new bool | Disconnect (QObject receiver, string member=null) |
| More...
|
|
new bool | Disconnect (string signal=null, QObject receiver=null, string member=null) |
| More...
|
|
new void | DumpObjectInfo () |
| More...
|
|
new void | DumpObjectTree () |
| More...
|
|
virtual bool | OnEvent (QEvent e) |
| More...
|
|
virtual bool | EventFilter (QObject watched, QEvent @event) |
| More...
|
|
new bool | Inherits (string classname) |
| More...
|
|
new void | InstallEventFilter (QObject filterObj) |
| More...
|
|
new void | KillTimer (int id) |
| More...
|
|
new object | Property (string name) |
| More...
|
|
new void | RemoveEventFilter (QObject obj) |
| More...
|
|
new bool | SetProperty (string name, object value) |
| More...
|
|
new void | SetUserData (uint id, QObjectUserData data) |
|
new int | StartTimer (int interval) |
| More...
|
|
new QObjectUserData | UserData (uint id) |
|
new void | Dispose () |
|
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
|
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
|
delegate QObject | FuncQObject () |
|
delegate string | FuncStringQByteArray (QByteArray qByteArray) |
|
delegate QByteArray | FuncQByteArrayString (string @string) |
|
|
| QSqlRelationalDelegate (System.Type dummy) |
|
| QItemDelegate (System.Type dummy) |
|
new QRect | Check (QStyleOptionViewItem option, QRect bounding, object variant) |
|
new QPixmap | Decoration (QStyleOptionViewItem option, object variant) |
|
new void | DoLayout (QStyleOptionViewItem option, QRect checkRect, QRect iconRect, QRect textRect, bool hint) |
|
new void | DrawBackground (QPainter painter, QStyleOptionViewItem option, QModelIndex index) |
| More...
|
|
virtual void | DrawCheck (QPainter painter, QStyleOptionViewItem option, QRect rect, Qt.CheckState state) |
| More...
|
|
virtual void | DrawDecoration (QPainter painter, QStyleOptionViewItem option, QRect rect, QPixmap pixmap) |
| More...
|
|
virtual void | DrawDisplay (QPainter painter, QStyleOptionViewItem option, QRect rect, string text) |
| More...
|
|
virtual void | DrawFocus (QPainter painter, QStyleOptionViewItem option, QRect rect) |
| More...
|
|
new QRect | Rect (QStyleOptionViewItem option, QModelIndex index, int role) |
|
new QPixmap | Selected (QPixmap pixmap, QPalette palette, bool enabled) |
|
new QStyleOptionViewItem | SetOptions (QModelIndex index, QStyleOptionViewItem option) |
|
new QRect | TextRectangle (QPainter painter, QRect rect, QFont font, string text) |
|
| QAbstractItemDelegate (System.Type dummy) |
|
new void | OnCloseEditor (QWidget editor, QAbstractItemDelegate.EndEditHint hint=QAbstractItemDelegate.EndEditHint.NoHint) |
| More...
|
|
new void | OnCommitData (QWidget editor) |
| More...
|
|
new void | OnSizeHintChanged (QModelIndex index) |
| More...
|
|
| QObject (System.Type dummy) |
|
virtual void | OnChildEvent (QChildEvent @event) |
| More...
|
|
virtual void | ConnectNotify (string signal) |
| More...
|
|
virtual void | OnCustomEvent (QEvent @event) |
| More...
|
|
new void | OnDestroyed (QObject obj=null) |
| More...
|
|
virtual void | DisconnectNotify (string signal) |
| More...
|
|
new int | Receivers (string signal) |
| More...
|
|
virtual void | OnTimerEvent (QTimerEvent @event) |
| More...
|
|
|
enum | EndEditHint {
EditNextItem = 1,
EditPreviousItem = 2,
NoHint = 0,
RevertModelCache = 4,
SubmitModelCache = 3
} |
| More...
|
|
static string | Tr (string s, string c=null) |
|
static string | Tr (string s, string c, int n) |
|
static string | TrUtf8 (string s, string c=null) |
|
static string | TrUtf8 (string s, string c, int n) |
|
</para > *< para > Creating QM
files suitable for use with
this[SmokeMethod("qtTrId(const
char*, int)")] static strin | QtTrId )(string id, int n=-1) |
|
object | Q_EMIT = null |
|
SmokeInvocation | interceptor |
|
readonly List< QEventHandler > | eventFilters = new List<QEventHandler>() |
|
The QSqlRelationalDelegate class provides a delegate that is used to display and edit data from a QSqlRelationalTableModel.
Unlike the default delegate, QSqlRelationalDelegate provides a combobox for fields that are foreign keys into other tables. To use the class, simply call QAbstractItemView::setItemDelegate() on the view with an instance of QSqlRelationalDelegate:
QTableView *view = new QTableView;
view->setModel(model);
view->setItemDelegate(new QSqlRelationalDelegate(view));
The Relational Table Model example (shown below) illustrates how to use QSqlRelationalDelegate in conjunction with QSqlRelationalTableModel to provide tables with foreign key support.
See also QSqlRelationalTableModel and Model/View Programming.