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_qitemselectionmodel.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
#
include
<
QItemSelection
>
5
#
include
<
QModelIndex
>
6
7
void
examples
()
8
{
9
QModelIndex topLeft;
10
QModelIndex bottomRight;
11
12
{
13
//! [0]
14
QItemSelection *selection =
new
QItemSelection(topLeft, bottomRight);
15
//! [0]
16
}
17
18
{
19
//! [1]
20
QItemSelection *selection =
new
QItemSelection();
21
//...
22
selection->select(topLeft, bottomRight);
23
//! [1]
24
}
25
}
examples
bool examples()
[3]
Definition
src_corelib_global_qglobal.cpp:43
qtbase
src
corelib
doc
snippets
code
src_gui_itemviews_qitemselectionmodel.cpp
Generated on
for Qt by
1.14.0