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_qtreewidget.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
7QList<QTreeWidgetItem *> items;
8for (int i = 0; i < 10; ++i)
9 items.append(new QTreeWidgetItem(static_cast<QTreeWidget *>(nullptr), QStringList(QString("item: %1").arg(i))));
void append(parameter_type t)
Definition qlist.h:458
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class.
Definition qtreewidget.h:23
The QTreeWidget class provides a tree view that uses a predefined tree model.
void insertTopLevelItems(int index, const QList< QTreeWidgetItem * > &items)
void setColumnCount(int columns)
QList< QString > QStringList
Constructs a string list that contains the given string, str.
SSL_CTX int void * arg
QList< QTreeWidgetItem * > items
QTreeWidget * treeWidget
[0]