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

bool QString::isEmpty (  )  const [inline]

Returns true if the string has no characters; otherwise returns false.

Example:

snippets/qstring/main.cpp Widget::isEmptyFunction() QString().isEmpty() QString("abc").isEmpty()

See also:
size()

Definition at line 586 of file qstring.h.

Referenced by QMessageBox::aboutQt(), QDir::absoluteFilePath(), QIcon::addFile(), Q3FileDialog::addFilter(), QCoreApplication::addLibraryPath(), Q3Url::addPath(), QPainterPath::addText(), QCoreApplication::applicationFilePath(), QFontDatabase::bold(), QPainter::boundingRect(), Q3IconViewItem::calcRect(), QDir::cd(), Q3Ftp::checkConnection(), QDir::cleanPath(), QDBusConnection::connect(), QDBusConnection::connectToBus(), Q3TextEdit::contentsMouseReleaseEvent(), QHttpHeader::contentType(), Q3HttpHeader::contentType(), QSqlIndex::createField(), QAbstractFormBuilder::createProperty(), QUndoStack::createRedoAction(), QUndoGroup::createRedoAction(), QLineEdit::createStandardContextMenu(), QUndoStack::createUndoAction(), QUndoGroup::createUndoAction(), Q3MimeSourceFactory::data(), Q3Url::decode(), Q3UriDrag::decodeLocalFiles(), QSqlTableModel::deleteRowFromTable(), QDBusConnection::disconnect(), QPlastiqueStyle::drawControl(), QCleanlooksStyle::drawControl(), QWindowsStyle::drawControl(), QWindowsXPStyle::drawControl(), QCommonStyle::drawControl(), QItemDelegate::drawDisplay(), QCleanlooksStyle::drawItemText(), QStyle::drawItemText(), QPainter::drawText(), Q3Url::encode(), Q3Url::encodedPathAndQuery(), QFSFileEngine::entryList(), Q3WhatsThis::eventFilter(), QSqlQuery::exec(), QSqlDatabase::exec(), QDir::exists(), QFontDatabase::families(), QFSFileEngine::fileName(), Q3FileDialog::fileNameEditDone(), Q3FileDialog::fileNameEditReturnPressed(), QDir::filePath(), Q3DataTable::find(), QFontDatabase::findFont(), Q3ListView::findItem(), Q3ListBox::findItem(), QDomNode::firstChildElement(), QFontDatabase::font(), QFont::fromString(), QDate::fromString(), QDateTime::fromString(), QTime::fromString(), Q3UrlOperator::get(), QFileDialog::getExistingDirectory(), Q3FileDialog::getExistingDirectory(), QFileDialog::getOpenFileName(), Q3FileDialog::getOpenFileName(), Q3FileDialog::getOpenFileNames(), QFileDialog::getOpenFileNames(), Q3FileDialog::getSaveFileName(), QFileDialog::getSaveFileName(), Q3DataManager::handleError(), QDomImplementation::hasFeature(), QGraphicsScene::helpEvent(), QDirModel::index(), Q3TextEdit::inputMethodEvent(), QLineEdit::inputMethodEvent(), QTextCursor::insertText(), QFontDatabase::isBitmapScalable(), QLibrary::isLibrary(), QUrl::isParentOf(), QFontDatabase::isSmoothlyScalable(), QNetworkInterface::isValid(), QDBusUtil::isValidBusName(), QDBusUtil::isValidInterfaceName(), QDBusUtil::isValidMemberName(), QDBusUtil::isValidPartOfObjectPath(), QDBusUtil::isValidUniqueConnectionName(), QFontDatabase::italic(), QStyle::itemTextRect(), QTreeView::keyboardSearch(), QAbstractItemView::keyboardSearch(), QLineEdit::keyPressEvent(), Q3ListView::keyPressEvent(), Q3IconView::keyPressEvent(), Q3FileDialog::keyPressEvent(), QComboBox::keyPressEvent(), QAbstractSpinBox::keyPressEvent(), QAbstractItemView::keyPressEvent(), QTextEdit::keyPressEvent(), Q3ComboBox::keyPressEvent(), Q3ListBox::keyPressEvent(), QMenuBar::keyPressEvent(), QTextBrowser::keyPressEvent(), QDomNode::lastChildElement(), Q3Process::launch(), Q3Ftp::list(), QFtp::list(), QPixmap::load(), QImage::load(), Q3MimeSourceFactory::makeAbsolute(), QAbstractItemModel::match(), Q3MainWindow::menuAboutToShow(), Q3Action::menuStatusText(), QDir::mkdir(), QDir::mkpath(), QAbstractItemView::mouseMoveEvent(), QAccessibleDisplay::navigate(), QDomNode::nextSiblingElement(), QDBusConnection::objectRegisteredAt(), Q3FileDialog::okClicked(), QAssistantClient::openAssistant(), operator==(), operator>(), Q3TextEdit::optimAppend(), Q3TextEdit::optimInsert(), Q3TextEdit::optimParseTags(), Q3TextEdit::optimSetText(), QItemDelegate::paint(), Q3ListViewItem::paintCell(), Q3Url::parse(), Q3TextEdit::pasteSubType(), QFontDatabase::pointSizes(), QPlastiqueStyle::polish(), QCleanlooksStyle::polish(), QXmlNamespaceSupport::prefix(), QXmlNamespaceSupport::prefixes(), QSqlQuery::prepare(), QSqlResult::prepare(), QDomNode::previousSiblingElement(), Q3UrlOperator::put(), Q3FileDialog::Q3FileDialog(), Q3SqlSelectCursor::Q3SqlSelectCursor(), Q3Url::Q3Url(), QAssistantClient::QAssistantClient(), QDBusConnection::QDBusConnection(), QDBusServer::QDBusServer(), QDir::QDir(), QFontDialog::QFontDialog(), QGraphicsTextItem::QGraphicsTextItem(), QHttpHeader::QHttpHeader(), QIcon::QIcon(), QUrl::QUrl(), QUuid::QUuid(), Q3TextStream::readLine(), QExtensionManager::registerExtensions(), QDBusConnection::registerObject(), QResource::registerResource(), QAccessibleDisplay::relationTo(), QDir::relativeFilePath(), QDir::remove(), QSettings::remove(), QCoreApplication::removeLibraryPath(), QDir::rename(), replace(), QDir::rmdir(), QDir::rmpath(), QAbstractFormBuilder::saveBrush(), QAbstractFormBuilder::saveComboBoxExtraInfo(), QAbstractFormBuilder::saveTableWidgetExtraInfo(), QAbstractFormBuilder::saveTreeWidgetExtraInfo(), Q3TextEdit::scrollToAnchor(), QTextEdit::scrollToAnchor(), section(), Q3SqlCursor::select(), QSqlTableModel::select(), Q3FileDialog::selectDirectoryOrFile(), QSqlTableModel::selectStatement(), QSqlRelationalTableModel::selectStatement(), Q3TabDialog::setApplyButton(), Q3TabDialog::setCancelButton(), Q3TabDialog::setDefaultButton(), Q3FileDialog::setDir(), Q3FileDialog::setFilter(), Q3TabDialog::setHelpButton(), QColor::setNamedColor(), Q3TabDialog::setOkButton(), QPrinter::setOutputFileName(), QTextLayout::setPreeditArea(), Q3ListViewItem::setText(), Q3IconViewItem::setText(), Q3Action::showStatusText(), QToolTip::showText(), QPushButton::sizeHint(), QFontDatabase::smoothSizes(), QCompleter::splitPath(), QSqlDriver::sqlStatement(), QFontDatabase::styles(), QAccessibleTabBar::text(), QClipboard::text(), Q3TextEdit::text(), QAccessibleWidget::text(), QAccessibleComboBox::text(), QAccessibleButton::text(), QImage::text(), QAccessibleToolButton::text(), QAccessibleHeader::text(), QAccessibleLineEdit::text(), QAccessibleDisplay::text(), QTextDocumentFragment::toPlainText(), QDateTime::toString(), QUrl::toString(), Q3SqlCursor::toString(), Q3Url::toString(), QAbstractFormBuilder::toVariant(), QCoreApplication::translate(), QFileIconProvider::type(), QExtensionManager::unregisterExtensions(), Q3TextEdit::updateCursor(), QSqlTableModel::updateRowInTable(), QDoubleValidator::validate(), QIntValidator::validate(), QHeaderView::viewportEvent(), and QFontDatabase::weight().

{ return d->size == 0; }


Generated by  Doxygen 1.6.0   Back to index