Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
4
//! [0]
5
void
MyView::resizeEvent(QResizeEvent *event) {
6
horizontalScrollBar()->setRange(0, realWidth - width());
7
...
8
}
9
//! [0]
10
11
//! [1]
12
setIndexWidget
(index,
new
QLineEdit);
13
...
14
setIndexWidget
(index,
new
QTextEdit);
15
//! [1]
16
17
//! [2]
18
QItemSelectionModel
*
m
= view->selectionModel();
19
view->setModel(
new
model);
20
delete
m;
21
//! [2]
m
QItemSelectionModel * m
[1]
Definition
src_gui_itemviews_qabstractitemview.cpp:18
setIndexWidget
setIndexWidget(index, new QLineEdit)
[0]
qtbase
src
widgets
doc
snippets
code
src_gui_itemviews_qabstractitemview.cpp
Generated on
for Qt by
1.14.0