Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_itemviews_qabstractitemview.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5
void
MyView::resizeEvent(
QResizeEvent
*
event
) {
6
horizontalScrollBar()->setRange(0, realWidth -
width
());
7
...
8
}
10
12
setIndexWidget
(
index
,
new
QLineEdit
);
13
...
14
setIndexWidget(
index
,
new
QTextEdit
);
16
18
QItemSelectionModel
*
m
=
view
->selectionModel();
19
view
->setModel(
new
model
);
20
delete
m
;
QItemSelectionModel
[38]
Definition
src_corelib_kernel_qobject.cpp:337
QLineEdit
The QLineEdit widget is a one-line text editor.
Definition
qlineedit.h:28
QResizeEvent
The QResizeEvent class contains event parameters for resize events.
Definition
qevent.h:548
QTextEdit
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition
qtextedit.h:27
m
const GLfloat * m
Definition
qopengles2ext.h:3203
index
GLuint index
[2]
Definition
qopengles2ext.h:331
width
GLint GLsizei width
Definition
qopengles2ext.h:206
event
struct _cl_event * event
Definition
qopenglext.h:2998
model
QSqlQueryModel * model
[16]
Definition
sqldatabase_snippet.cpp:5
setIndexWidget
setIndexWidget(index, new QLineEdit)
[0]
view
QQuickView * view
[0]
Definition
src_plugins_platforms_qnx_qqnxwindow.cpp:5
qtbase
src
widgets
doc
snippets
code
src_gui_itemviews_qabstractitemview.cpp
Generated by
1.10.0