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

bool QByteArray::isEmpty (  )  const [inline]

Returns true if the byte array has size 0; otherwise returns false.


        QByteArray().isEmpty();         // returns true
        QByteArray("").isEmpty();       // returns true
        QByteArray("abc").isEmpty();    // returns false

See also:

Definition at line 334 of file qbytearray.h.

Referenced by QTextCodec::codecForName(), Q3ImageDrag::decode(), QBitArray::isEmpty(), Q3Process::launch(), operator!=(), operator==(), Q3TextEdit::pasteSpecial(), QMainWindow::restoreState(), Q3FileDialog::setDir(), QItemDelegate::setEditorData(), Q3UriDrag::setFileNames(), QItemDelegate::setModelData(), QUrl::setQueryItems(), QUrl::toPercentEncoding(), and QMetaEnum::valueToKeys().

{ return d->size == 0; }

Generated by  Doxygen 1.6.0   Back to index