⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qsortedlist.3qt

📁 Trolltech公司发布的基于C++图形开发环境
💻 3QT
字号:
'\" t.TH QSortedList 3qt "24 January 2005" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQSortedList \- List sorted by operator.br.PP\fC#include <qsortedlist.h>\fR.PPInherits QList..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQSortedList\fR () ".br.ti -1c.BI "\fBQSortedList\fR ( const QSortedList<type> & list ) ".br.ti -1c.BI "\fB~QSortedList\fR () ".br.ti -1c.BI "QSortedList<type>& \fBoperator=\fR ( const QSortedList<type> & list ) ".br.in -1c.SH DESCRIPTIONThe QSortedList class provides a list sorted by operator< and operator==.PPIf you want to sort a QList you have to reimplement the QGList::compareItems() method. If the elements of your list support operator<() and operator==() then you can use QSortedList instead. Its compareItems() calls operator<() and operator==() and returns an appropriate result..PPOtherwise, this is as QList..PPSee also QList and Collection Classes.SH MEMBER FUNCTION DOCUMENTATION.SH "QSortedList::QSortedList ()"Constructs an empty list..SH "QSortedList::QSortedList ( const QSortedList<type> & list )"Constructs a copy of \fIlist.\fR.PPEach item in \fIlist\fR is copied to this new list..SH "QSortedList::~QSortedList ()"Removes all items from the list and destroys the list..PPAll list iterators that access this list will be reset..SH "int QSortedList::compareItems ( QCollection::Item s1, QCollection::Item s2 ) \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPThis reimplementation uses operator< and operator== to compare..SH "QSortedList<type>& QSortedList::operator= ( const QSortedList<type> & list )"Assigns \fIlist\fR to this list and returns a reference to this list..PPThis list is first cleared, then each item in \fIlist\fR isappended to this list.  Only the pointers are copied(shallow copy), unless newItem() has been reimplemented()..SH "SEE ALSO".BR http://doc.trolltech.com/qsortedlist.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qsortedlist.3qt) and the Qtversion (2.3.10).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -