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

bool QString::isEmpty (  )  const [inline]

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

Example:

        QString().isEmpty();            // returns true
        QString("").isEmpty();          // returns true
        QString("x").isEmpty();         // returns false
        QString("abc").isEmpty();       // returns false

See also:
size()

Definition at line 546 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(), Q3TextEdit::contentsMouseReleaseEvent(), QHttpHeader::contentType(), Q3HttpHeader::contentType(), QSqlIndex::createField(), QAbstractFormBuilder::createProperty(), QLineEdit::createStandardContextMenu(), Q3MimeSourceFactory::data(), QLocale::dateFormat(), Q3Url::decode(), Q3UriDrag::decodeLocalFiles(), QSqlTableModel::deleteRowFromTable(), QPlastiqueStyle::drawControl(), QWindowsStyle::drawControl(), QWindowsXPStyle::drawControl(), QCommonStyle::drawControl(), QStyle::drawItemText(), QPainter::drawText(), QAbstractItemDelegate::elidedText(), Q3Url::encode(), Q3Url::encodedPathAndQuery(), Q3WhatsThis::eventFilter(), QSqlQuery::exec(), QSqlDatabase::exec(), QDir::exists(), QFontDatabase::families(), QFSFileEngine::fileName(), Q3FileDialog::fileNameEditDone(), Q3FileDialog::fileNameEditReturnPressed(), QDir::filePath(), QTextDocument::find(), 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(), QFileDialog::getSaveFileName(), Q3FileDialog::getSaveFileName(), Q3DataManager::handleError(), QDomImplementation::hasFeature(), QDirModel::index(), QTextEdit::inputMethodEvent(), Q3TextEdit::inputMethodEvent(), QLineEdit::inputMethodEvent(), QTextCursor::insertText(), QFontDatabase::isBitmapScalable(), QLibrary::isLibrary(), QUrl::isParentOf(), QFontDatabase::isSmoothlyScalable(), QFontDatabase::italic(), QStyle::itemTextRect(), QLineEdit::keyPressEvent(), Q3ListView::keyPressEvent(), QAbstractItemView::keyPressEvent(), QAbstractSpinBox::keyPressEvent(), QComboBox::keyPressEvent(), Q3FileDialog::keyPressEvent(), Q3IconView::keyPressEvent(), QTextEdit::keyPressEvent(), Q3ComboBox::keyPressEvent(), Q3ListBox::keyPressEvent(), QDateTimeEdit::keyPressEvent(), QMenuBar::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(), QTextEdit::mouseDoubleClickEvent(), QAbstractItemView::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), QTextBrowser::mouseMoveEvent(), QTextEdit::mousePressEvent(), QTextBrowser::mouseReleaseEvent(), QAccessibleDisplay::navigate(), QDomNode::nextSiblingElement(), Q3FileDialog::okClicked(), QAssistantClient::openAssistant(), operator==(), operator>(), Q3TextEdit::optimAppend(), Q3TextEdit::optimInsert(), Q3TextEdit::optimParseTags(), Q3TextEdit::optimSetText(), QItemDelegate::paint(), Q3ListViewItem::paintCell(), Q3Url::parse(), Q3TextEdit::pasteSubType(), QFontDatabase::pointSizes(), QXmlNamespaceSupport::prefix(), QXmlNamespaceSupport::prefixes(), QSqlQuery::prepare(), QSqlResult::prepare(), QDomNode::previousSiblingElement(), Q3UrlOperator::put(), Q3FileDialog::Q3FileDialog(), Q3SqlSelectCursor::Q3SqlSelectCursor(), Q3Url::Q3Url(), QAssistantClient::QAssistantClient(), QDir::QDir(), QFontDialog::QFontDialog(), QHttpHeader::QHttpHeader(), QIcon::QIcon(), QUrl::QUrl(), QUuid::QUuid(), QExtensionManager::registerExtensions(), QAccessibleDisplay::relationTo(), QDir::relativeFilePath(), QDir::remove(), QSettings::remove(), QCoreApplication::removeLibraryPath(), QDir::rename(), replace(), QDir::rmdir(), QDir::rmpath(), QAbstractFormBuilder::saveComboBoxExtraInfo(), QAbstractFormBuilder::saveTableWidgetExtraInfo(), QAbstractFormBuilder::saveTreeWidgetExtraInfo(), QTextEdit::scrollToAnchor(), Q3TextEdit::scrollToAnchor(), section(), Q3SqlCursor::select(), QSqlTableModel::select(), Q3FileDialog::selectDirectoryOrFile(), QSqlRelationalTableModel::selectStatement(), QSqlTableModel::selectStatement(), Q3TabDialog::setApplyButton(), Q3TabDialog::setCancelButton(), Q3TabDialog::setDefaultButton(), Q3FileDialog::setDir(), Q3FileDialog::setFilter(), QUrl::setFragment(), Q3TabDialog::setHelpButton(), QColor::setNamedColor(), Q3TabDialog::setOkButton(), QTextLayout::setPreeditArea(), Q3ListViewItem::setText(), Q3IconViewItem::setText(), Q3Action::showStatusText(), QToolTip::showText(), QPushButton::sizeHint(), QFontDatabase::smoothSizes(), QSqlDriver::sqlStatement(), QFontDatabase::styles(), QAccessibleTabBar::text(), QClipboard::text(), QAccessibleWidget::text(), Q3TextEdit::text(), QAccessibleComboBox::text(), QAccessibleButton::text(), QImage::text(), QAccessibleHeader::text(), QAccessibleToolButton::text(), QAccessibleLineEdit::text(), QAccessibleDisplay::text(), QLocale::timeFormat(), QTextDocumentFragment::toPlainText(), QUrl::toString(), Q3SqlCursor::toString(), Q3Url::toString(), QAbstractFormBuilder::toVariant(), QCoreApplication::translate(), 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