Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

template<typename T >
const T & QList< T >::at ( int  i ) const [inline, inherited]

Returns the item at index position i in the list. i must be a valid index position in the list (i.e., 0 <= i < size()).

This function is very fast ({constant time}).

See also:
value(), operator[]()

Definition at line 394 of file qlist.h.

Referenced by QFileSystemModelPrivate::_q_fileSystemChanged(), QColumnViewPrivate::_q_gripMoved(), QHeaderViewPrivate::_q_layoutChanged(), QAbstractSocketPrivate::_q_startConnecting(), MainWindow::aboutToFinish(), QTextDocumentPrivate::aboutToRemoveCell(), QFileDialog::accept(), QWidget::addActions(), QGraphicsWidget::addActions(), MainWindow::addFiles(), Q3Wizard::addPage(), QUrlModel::addUrls(), QFileSystemModelPrivate::addVisibleFiles(), QApplication::alert(), QPatternist::Expression::announceFocusType(), QCoreApplication::arguments(), QTextCodec::availableCodecs(), QTextCodec::availableMibs(), Q3Wizard::back(), AnimatedPixmapItem::boundingRect(), QSqlQuery::boundValues(), QDialogButtonBox::buttonRole(), QDialogButtonBox::buttons(), QUrlModel::canDrop(), QAbstractItemModel::changePersistentIndexList(), QUndoCommand::child(), QAccessibleMainWindow::childAt(), QAccessibleAbstractScrollArea::childAt(), QAccessibleApplication::childAt(), QAccessibleWidget::childAt(), QTreeWidgetItem::childrenCheckState(), Q3ListView::clear(), Q3ToolBar::clear(), QTreeModel::clear(), QToolBar::clear(), QAbstractItemViewPrivate::clearOrRemove(), QZipWriter::close(), QApplication::closeAllWindows(), QColumnViewPrivate::closeColumns(), QTextCodec::codecForMib(), QTextCodec::codecForName(), QItemSelectionModel::columnIntersectsSelection(), QApplication::commitData(), QPatternist::Template::compileParameters(), QScriptDebuggerConsoleCommandManager::completions(), QPatternist::PatternPlatform::compress(), QPatternist::ReplaceFN::compress(), QPatternist::TemplateInvoker::compress(), QCoreApplication::compressEvent(), QApplication::compressEvent(), QMetaObject::connectSlotsByName(), QApplicationArgumentParserPrivate::contains(), QAbstractFileEngine::create(), QXIMInputContext::create_xim(), MainWindow::createColorMenu(), Window::createGeneralOptionsGroupBox(), GLWidget::createGeometry(), Window::createGUI(), QGraphicsScene::createItemGroup(), QScriptDebuggerConsolePrivate::createJob(), QShortcutMap::createNewSequences(), QMainWindow::createPopupMenu(), QLineEdit::createStandardContextMenu(), QResourceFileEngineIterator::currentFileName(), QListModel::data(), FeatureTreeModel::data(), FileListModel::data(), PhraseModel::data(), CookieExceptionsModel::data(), QStringListModel::data(), qdesigner_internal::WidgetBoxCategoryModel::data(), Phonon::ObjectDescriptionModelData::data(), DownloadModel::data(), HistoryModel::data(), QTreeWidgetItem::data(), StationModel::data(), Q3MimeSourceFactory::data(), CookieModel::data(), StringListModel::data(), QUrlModel::dataChanged(), QPatternist::Expression::deepProperties(), QScriptDebuggerAgent::deleteBreakpoint(), QGLContext::deleteTexture(), QWidget::destroy(), QGraphicsItem::deviceTransform(), QApplicationPrivate::dispatchEnterLeave(), QGraphicsScenePrivate::dispatchHoverEvent(), QApplicationArgumentParserPrivate::displayHelp(), QAccessibleApplication::doAction(), Q3IconView::doAutoScroll(), Q3MainWindow::dockWindows(), QColumnViewPrivate::doLayout(), Q3IconView::drawContents(), Q3ListView::drawContentsOffset(), QX11PaintEngine::drawPath(), QTreeWidget::dropEvent(), QTableWidget::dropEvent(), QListWidget::dropEvent(), BookmarksToolBar::dropEvent(), BookmarksModel::dropMimeData(), QAbstractTableModel::dropMimeData(), QAbstractListModel::dropMimeData(), QAbstractItemModel::dropMimeData(), QObject::dumpObjectInfo(), QBoxLayoutPrivate::effectiveMargins(), QItemSelectionModel::emitSelectionChanged(), QWidget::ensurePolished(), QListModel::ensureSorted(), QDBusMessage::errorMessage(), QPatternist::UnparsedTextAvailableFN::evaluateEBV(), QPatternist::InsertBeforeFN::evaluateSequence(), QPatternist::SubsequenceFN::evaluateSequence(), QPatternist::StartsWithFN::evaluateSingleton(), QPatternist::TranslateFN::evaluateSingleton(), QPatternist::ReturnOrderBy::evaluateSingleton(), QPatternist::SubstringBeforeFN::evaluateSingleton(), QPatternist::FunctionAvailableFN::evaluateSingleton(), QPatternist::SubstringAfterFN::evaluateSingleton(), QPatternist::LangFN::evaluateSingleton(), QPatternist::UnparsedTextFN::evaluateSingleton(), QPatternist::AdjustTimezone::evaluateSingleton(), QPatternist::ContainsFN::evaluateSingleton(), QPatternist::EndsWithFN::evaluateSingleton(), QPatternist::CompareFN::evaluateSingleton(), QPatternist::RoundHalfToEvenFN::evaluateSingleton(), QPatternist::SubstringFN::evaluateSingleton(), QPatternist::StringJoinFN::evaluateSingleton(), QPatternist::ErrorFN::evaluateSingleton(), QWidget::event(), QMessageBox::event(), QApplication::event(), QDialogButtonBox::event(), QWindowsStyle::eventFilter(), QSqlResult::execBatch(), QScriptDebuggerCommandExecutor::execute(), QItemSelectionModelPrivate::expandSelection(), QScriptDebuggerAgent::extension(), QFileInfoGatherer::fetchExtendedInformation(), QZipReader::fileData(), IndexListModel::filter(), Q3IconView::findFirstVisibleItem(), Q3IconView::findItem(), QTreeWidget::findItems(), QListWidget::findItems(), QTableWidget::findItems(), QStandardItemModel::findItems(), Q3IconView::findLastVisibleItem(), qdesigner_internal::WidgetBoxCategoryModel::flags(), QListModel::flags(), Phonon::ObjectDescriptionModelData::flags(), PhraseModel::flags(), Q3TextEdit::focusNextPrevChild(), MainWindow::forceFpsMedianCalculation(), QDropEvent::format(), QMimeDataWrapper::format(), QInternalMimeData::formats(), qdesigner_internal::FormWindowManager::formWindow(), QDate::fromString(), QDateTime::fromString(), Q3FileDialog::getOpenFileNames(), QPrinter::getPageMargins(), QInternalMimeData::hasFormat(), QGraphicsScene::helpEvent(), QDialogPrivate::hideDefault(), FortuneServer::incomingConnection(), FeatureTreeModel::index(), QListModel::index(), QDirModel::index(), QScriptDebuggerLocalsModel::index(), QPPDOptionsModel::index(), QTreeModel::index(), BookmarksModel::index(), Q3FileDialog::init(), CPP::WriteInitialization::initializeTreeWidgetItems(), QPictureIO::inputFormats(), Q3TextEdit::inputMethodEvent(), QLineEdit::inputMethodEvent(), QGraphicsWidget::insertActions(), QWidget::insertActions(), QTreeWidgetItem::insertChild(), QTreeWidgetItem::insertChildren(), QTreeModel::insertColumns(), MainWindow::insertCustomer(), QComboBox::insertItems(), Q3Wizard::insertPage(), QtAbstractPropertyBrowser::insertProperty(), QtProperty::insertSubProperty(), QListView::internalDrop(), Q3DockArea::invalidNextOffset(), QApplicationPrivate::isBlockedByModal(), QMenu::isEmpty(), QLibrary::isLibrary(), Q3TabDialog::isTabEnabled(), QDBusUtil::isValidBusName(), QDBusUtil::isValidInterfaceName(), QDBusUtil::isValidObjectPath(), QDBusUtil::isValidUniqueConnectionName(), Q3ListView::itemAt(), QToolBarLayout::itemAt(), QListModel::itemData(), Q3ListView::itemRect(), QTreeView::keyboardSearch(), QDialog::keyPressEvent(), Q3IconView::keyPressEvent(), QMessageBox::keyPressEvent(), QMetaEnum::keysToValue(), Q3Wizard::layOutButtonRow(), QUrlModel::layoutChanged(), Q3DockAreaLayout::layoutItems(), QTextFormat::lengthVectorProperty(), Q3DockArea::lineUp(), QWebFrame::load(), QScriptDebuggerConsolePrivate::loadScriptedCommands(), Q3TableExtraInfo::loadWidgetExtraInfo(), Q3ListViewExtraInfo::loadWidgetExtraInfo(), Q3ListBoxExtraInfo::loadWidgetExtraInfo(), QLibraryInfo::location(), HistoryFilterModel::mapFromSource(), HistoryTreeModel::mapFromSource(), QAbstractProxyModel::mapSelectionFromSource(), QAbstractProxyModel::mapSelectionToSource(), QDirIteratorPrivate::matchesFilters(), Q3MainWindow::menuAboutToShow(), Q3MainWindow::menuBar(), QItemSelection::merge(), MainWindow::metaStateChanged(), QList< T >::mid(), Phonon::ObjectDescriptionModelData::mimeData(), QProxyModel::mimeData(), QUrlModel::mimeData(), QSortFilterProxyModel::mimeData(), QTreeWidget::mimeData(), QTableModel::mimeData(), QListModel::mimeData(), QAbstractItemModel::mimeData(), QTreeModel::mimeData(), Q3DockAreaLayout::minimumSize(), QHideDock::mouseMoveEvent(), Document::mouseMoveEvent(), QGraphicsItem::mouseMoveEvent(), Document::mousePressEvent(), QHideDock::mouseReleaseEvent(), Q3DockArea::moveDockWindow(), QToolBarAreaLayoutInfo::moveToolBar(), QAccessibleApplication::navigate(), QAccessibleWidget::navigate(), Q3Wizard::next(), FileTree::nextSibling(), QDBusConnection::objectRegisteredAt(), Q3LocalFs::operationListChildren(), Q3MainWindow::operator<<(), Q3DockArea::operator<<(), Q3DockArea::operator>>(), Q3TextEdit::optimCheckLimit(), QPictureIO::outputFormats(), Q3Wizard::page(), Chip::paint(), AnimatedPixmapItem::paint(), qdesigner_internal::TabOrderEditor::paintEvent(), QHideDock::paintEvent(), Document::paintEvent(), MainWindow::paintEvent(), QApplicationArgumentParser::parse(), QNetworkCookie::parseCookies(), QPatternist::ReplaceFN::parseReplacement(), QDateTimeParser::parseSection(), QHostAddress::parseSubnet(), QPatternist::PatternPlatform::pattern(), QPictureIO::pictureFormat(), QScriptDebuggerAgent::positionChange(), QGraphicsItemAnimation::posList(), QWidgetPrivate::propagatePaletteChange(), QGraphicsScenePrivate::purgeRemovedItems(), Q3ComboTableItem::Q3ComboTableItem(), QTest::qExec(), QObjectXmlModel::qObjectSibling(), QObject::qt_find_obj_child(), QTreeWidgetItem::QTreeWidgetItem(), StationQuery::query(), TimeQuery::queryInternal(), QueryMainWindow::QueryMainWindow(), Q3WidgetStack::raiseWidget(), QTreeWidgetItem::read(), QObject::receivers(), QAccessibleAbstractScrollArea::rect(), QPainter::redirected(), QUndoCommand::redo(), QDBusConnection::registerObject(), QDBusConnectionInterface::registerService(), QAccessibleWidget::relationTo(), QAccessibleApplication::relationTo(), QDir::relativeFilePath(), QFileSystemModel::remove(), QDialogButtonBox::removeButton(), Q3DataTable::removeColumn(), QTextTable::removeColumns(), Q3DockArea::removeDockWindow(), QSidebar::removeEntry(), QObject::removeEventFilter(), Q3Wizard::removePage(), QCoreApplicationPrivate::removePostedEvent(), QtAbstractPropertyBrowser::removeProperty(), DownloadModel::removeRows(), QTextTable::removeRows(), BookmarksModel::removeRows(), QtProperty::removeSubProperty(), QFileSystemModelPrivate::removeVisibleFile(), QGraphicsScene::render(), QPainter::restoreRedirected(), QFileDialog::restoreState(), QInternalMimeData::retrieveData(), QAccessibleWidget::role(), QGraphicsItemAnimation::rotationList(), FeatureTreeModel::rowCount(), QItemSelectionModel::rowIntersectsSelection(), qt::fulltextsearch::std::QHelpSearchIndexReader::run(), QGraphicsItemAnimation::scaleList(), Q3Membuf::scanNewline(), QDateTimeParser::sectionSize(), QColumnView::selectAll(), QItemSelectionModel::selectedColumns(), QFileDialog::selectedFiles(), QListView::selectedIndexes(), QTreeView::selectedIndexes(), QTableView::selectedIndexes(), QTreeWidget::selectedItems(), QTableWidget::selectedItems(), QListWidget::selectedItems(), QTableWidget::selectedRanges(), QItemSelectionModel::selectedRows(), qdesigner_internal::FormWindowCursor::selectedWidget(), QItemSelectionModel::selection(), LinearView::selectionViewportRect(), QObject::sender(), Server::sendFortune(), QGraphicsScene::setActiveWindow(), QApplication::setActiveWindow(), QWidget::setAttribute(), QWizard::setButtonLayout(), Q3GroupBox::setColumnLayout(), QColumnView::setColumnWidths(), Q3ComboTableItem::setCurrentItem(), QListModel::setData(), QTreeWidgetItem::setData(), PhraseModel::setData(), QApplicationArgumentParser::setDeclaredArguments(), QDialogPrivate::setDefault(), QPPDOptionsEditor::setEditorData(), QTreeWidgetItem::setFlags(), BorderLayout::setGeometry(), QTreeWidget::setHeaderLabels(), QStandardItemModel::setHorizontalHeaderLabels(), QTableWidget::setHorizontalHeaderLabels(), Q3ImageDrag::setImage(), QFileSystemModel::setNameFilters(), Q3ListView::setOpen(), Q3ToolBar::setOrientation(), QPatternist::UserFunctionCallsite::setSource(), Q3ComboTableItem::setStringList(), Q3TabDialog::setTabEnabled(), QWidget::setTabOrder(), QAccessibleAbstractScrollArea::setText(), Q3UriDrag::setUnicodeUris(), QScriptExtensionPlugin::setupPackage(), AddressWidget::setupTabs(), Q3UriDrag::setUris(), QMimeData::setUrls(), qdesigner_internal::DesignerPropertyManager::setValue(), QTableWidget::setVerticalHeaderLabels(), QStandardItemModel::setVerticalHeaderLabels(), Q3WidgetStack::setVisible(), Q3Wizard::setVisible(), AnimatedPixmapItem::shape(), QGraphicsItemAnimation::shearList(), Q3Wizard::showPage(), Q3Action::showStatusText(), Q3DockAreaLayout::sizeHint(), QSplitter::sizeHint(), QListModel::sort(), QStringListModel::sort(), QFileSystemModel::sort(), QFSCompletor::splitPath(), NetworkAccessManager::sslErrors(), JambiApiParser::startElement(), QAccessibleMdiArea::state(), QAccessibleWorkspace::state(), QAccessibleAbstractScrollArea::state(), QWidgetBackingStore::staticContents(), QPatternist::SubsequenceFN::staticType(), QPatternist::SumFN::staticType(), Q3MainWindow::statusBar(), QDesktopServices::storageLocation(), QApplication::style(), QImageReader::supportedImageFormats(), QImageWriter::supportedImageFormats(), QPrinter::supportedResolutions(), QWidgetBackingStore::sync(), QMainWindow::tabifiedDockWidgets(), QTreeWidgetItem::takeChild(), QTreeWidgetItem::takeChildren(), Q3ListViewItem::takeItem(), QClipboard::text(), QAccessibleMenu::text(), QAccessibleAbstractScrollArea::text(), TextEdit::TextEdit(), QImage::textLanguages(), QImage::textList(), Phonon::DS9::MediaObject::timerEvent(), QPainterPath::toFillPolygon(), QPainterPath::toFillPolygons(), Q3MainWindow::toolBars(), QScriptDebuggerPrivate::toolTip(), QApplication::topLevelAt(), QScriptContext::toString(), QGraphicsItemAnimation::translationList(), MessageEditor::translations(), Phonon::ObjectDescriptionModelData::tupleIndexAtPositionIndex(), Phonon::ObjectDescriptionModelData::tupleIndexOrder(), QPatternist::SumFN::typeCheck(), QPatternist::ElementConstructor::typeCheck(), QPatternist::DocumentFN::typeCheck(), QUndoCommand::undo(), QDBusConnection::unregisterObject(), QResource::unregisterResource(), QDBusConnectionInterface::unregisterService(), QWidgetPrivate::updateFont(), DropSiteWindow::updateFormatsTable(), Window::updateWidgets(), QMimeData::urls(), QtEnumPropertyManager::valueText(), QtSizePolicyPropertyManager::valueText(), QTreeView::visualRegionForSelection(), QHeaderView::visualRegionForSelection(), QListView::visualRegionForSelection(), QTableView::visualRegionForSelection(), QColumnView::visualRegionForSelection(), PieView::visualRegionForSelection(), QWorkspace::windowList(), Q3ListView::~Q3ListView(), Q3ListViewItem::~Q3ListViewItem(), QGLContext::~QGLContext(), and QTreeWidgetItem::~QTreeWidgetItem().

{ Q_ASSERT_X(i >= 0 && i < p.size(), "QList<T>::at", "index out of range");
 return reinterpret_cast<Node *>(p.at(i))->t(); }

Generated by  Doxygen 1.6.0   Back to index