Compatibility Members for QList

The following members of class QListare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

iterator find(const T & t)
const_iterator find(const T & t) const
iterator find(iterator from, const T & t)
const_iterator find(const_iterator from, const T & t) const
int findIndex(const T & t) const
iterator remove(iterator pos)
int remove(const T & t)

Member Function Documentation

iterator QList::find(const T & t)

Use indexOf() instead.

const_iterator QList::find(const T & t) const

Use indexOf() instead.

iterator QList::find(iterator from, const T & t)

Use indexOf() instead.

const_iterator QList::find(const_iterator from, const T & t) const

Use indexOf() instead.

int QList::findIndex(const T & t) const

Use indexOf() instead.

iterator QList::remove(iterator pos)

Use erase() instead.

int QList::remove(const T & t)

Use removeAll() instead.

© 2016 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.