Obsolete Members for QTreeWidget
The following members of class QTreeWidget are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(obsolete) bool | isFirstItemColumnSpanned(const QTreeWidgetItem *item) const |
(obsolete) bool | isItemExpanded(const QTreeWidgetItem *item) const |
(obsolete) bool | isItemHidden(const QTreeWidgetItem *item) const |
(obsolete) bool | isItemSelected(const QTreeWidgetItem *item) const |
(obsolete) void | setFirstItemColumnSpanned(const QTreeWidgetItem *item, bool span) |
(obsolete) void | setItemExpanded(const QTreeWidgetItem *item, bool expand) |
(obsolete) void | setItemHidden(const QTreeWidgetItem *item, bool hide) |
(obsolete) void | setItemSelected(const QTreeWidgetItem *item, bool select) |
Protected Functions
(obsolete) QList<QTreeWidgetItem *> | items(const QMimeData *data) const |
Member Function Documentation
bool QTreeWidget::isFirstItemColumnSpanned(const QTreeWidgetItem *item) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns true
if the given item is set to show only one section over all columns; otherwise returns false
.
This function is deprecated. Use QTreeWidgetItem::isFirstColumnSpanned() instead.
This function was introduced in Qt 4.3.
See also setFirstItemColumnSpanned().
bool QTreeWidget::isItemExpanded(const QTreeWidgetItem *item) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns true
if the given item is open; otherwise returns false
.
This function is deprecated. Use QTreeWidgetItem::isExpanded() instead.
See also itemExpanded().
bool QTreeWidget::isItemHidden(const QTreeWidgetItem *item) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns true
if the item is explicitly hidden, otherwise returns false
.
This function is deprecated. Use QTreeWidgetItem::isHidden() instead.
bool QTreeWidget::isItemSelected(const QTreeWidgetItem *item) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns true
if the item is selected; otherwise returns false
.
This function is deprecated. Use QTreeWidgetItem::isSelected() instead.
See also itemSelectionChanged().
[protected]
QList<QTreeWidgetItem *> QTreeWidget::items(const QMimeData *data) const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Returns an empty list
See also mimeData().
void QTreeWidget::setFirstItemColumnSpanned(const QTreeWidgetItem *item, bool span)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Sets the given item to only show one section for all columns if span is true; otherwise the item will show one section per column.
This function is deprecated. Use QTreeWidgetItem::setFirstColumnSpanned() instead.
This function was introduced in Qt 4.3.
See also isFirstItemColumnSpanned().
void QTreeWidget::setItemExpanded(const QTreeWidgetItem *item, bool expand)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Sets the item referred to by item to either closed or opened, depending on the value of expand.
This function is deprecated. Use QTreeWidgetItem::setExpanded() instead.
See also expandItem(), collapseItem(), and itemExpanded().
void QTreeWidget::setItemHidden(const QTreeWidgetItem *item, bool hide)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Hides the given item if hide is true; otherwise shows the item.
This function is deprecated. Use QTreeWidgetItem::setHidden() instead.
See also isItemHidden() and itemChanged().
void QTreeWidget::setItemSelected(const QTreeWidgetItem *item, bool select)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
If select is true, the given item is selected; otherwise it is deselected.
This function is deprecated. Use QTreeWidgetItem::setSelected() instead.
See also isItemSelected() and itemSelectionChanged().
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.