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
7void 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}
bool examples()
[3]