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

bool QString::isNull (  )  const [inline]

Returns true if this string is null; otherwise returns false.

Example:

doc/src/snippets/qstring/main.cpp 28

Qt makes a distinction between null strings and empty strings for historical reasons. For most applications, what matters is whether or not a string contains any data, and this can be determined using the isEmpty() function.

See also:
isEmpty()

Definition at line 474 of file qstring.h.

Referenced by Q3ActionGroup::add(), Q3Header::addLabel(), QWizard::buttonText(), clear(), QDBusConnection::connect(), QDomImplementation::createDocumentType(), QAbstractFileEngineIterator::currentFilePath(), Q3TextDrag::decode(), QDBusConnection::disconnect(), Q3FileDialog::done(), QMotifStyle::drawControl(), QLineEdit::dropEvent(), QPatternist::NameFN::evaluateSingleton(), QPatternist::ReplaceFN::evaluateSingleton(), QPatternist::LocalNameFN::evaluateSingleton(), QPatternist::NodeNameFN::evaluateSingleton(), QPatternist::NamespaceURIFN::evaluateSingleton(), Q3DataTable::find(), Q3ListBox::focusInEvent(), Q3FileDialog::getExistingDirectory(), Q3NetworkProtocol::getNetworkProtocol(), Q3FileDialog::getOpenFileName(), Q3FileDialog::getOpenFileNames(), Q3FileDialog::getSaveFileName(), Q3GDict::hashKeyString(), MainWindow::insertItem(), QComboBox::insertItem(), Q3ComboBox::internalHighlight(), Q3StyleSheet::item(), Q3ListView::keyPressEvent(), Q3Header::label(), QFont::lastResortFont(), QTranslator::load(), QLibraryInfo::location(), QFtp::login(), Q3Ftp::login(), Q3MimeSourceFactory::makeAbsolute(), Q3ListBox::mouseDoubleClickEvent(), operator<<(), QXmlStreamAttribute::operator==(), Q3TextEdit::optimAppend(), Q3TextEdit::optimSetText(), Q3ComboBox::paintEvent(), Q3Url::path(), TreeModelCompleter::pathFromIndex(), QTextLayout::QTextLayout(), Q3ProgressDialog::setCancelButtonText(), QProgressDialog::setCancelButtonText(), Q3ListBox::setCurrentItem(), QUrl::setFragment(), Q3Header::setLabel(), QXmlNamespaceSupport::setPrefix(), Q3ListBox::setSelected(), TreeModelCompleter::splitPath(), Q3ListBox::takeItem(), QUrl::toPercentEncoding(), and QXmlStreamWriter::writeProcessingInstruction().

{ return d == &shared_null; }


Generated by  Doxygen 1.6.0   Back to index