2883 The QVariant class acts like a union for the most common Qt data types.
const T * constData() const
void truncate(int pos)
Truncates the byte array at index position pos.
void * data() const
Returns the data set in the constructor.
The QSemaphore class provides a general counting semaphore.
QByteArray & append(char c)
Appends the character ch to this byte array.
static void postEvent(QObject *receiver, QEvent *event)
Adds the event event, with the object receiver as the receiver of the event, to an event queue and re...
Q_CORE_EXPORT void qFree(void *ptr)
The QByteArray class provides an array of bytes.
static LibLoadStatus status
Q_CORE_EXPORT void * qMalloc(size_t size)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
The QGenericReturnArgument class is an internal helper class for marshalling arguments.
const QMetaObject &(* QMetaObjectAccessor)()
QByteArray toByteArray() const
Returns the variant as a QByteArray if the variant has type() ByteArray or String (converted using QS...
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
The QGenericArgument class is an internal helper class for marshalling arguments. ...
static QThread * currentThread()
Returns a pointer to a QThread which manages the currently executing thread.
#define QT_BEGIN_NAMESPACE
This macro expands to.
int lastIndexOf(char c, int from=-1) const
Returns the index position of the last occurrence of character ch in the byte array, searching backward from index position from.
void(* StaticMetaCallFunction)(QObject *, QMetaObject::Call, int, void **)
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
Type
This enum type defines the types of variable that a QVariant can contain.
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
QByteArray left(int len) const
Returns a byte array that contains the leftmost len bytes of this byte array.
QByteArray mid(int index, int len=-1) const
Returns a byte array containing len bytes from this byte array, starting at position pos...
const char * typeName() const
Returns the name of the type stored in the variant.
bool convert(Type t)
Casts the variant to the requested type, t.
int length() const
Same as size().
const char * constData() const
Returns a pointer to the data stored in the byte array.
uint qstrlen(const char *str)
int userType() const
Returns the storage type of the value stored in the variant.
QString trimmed(QString source)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Type type() const
Returns the storage type of the value stored in the variant.
const void * constData() const
int size() const
Returns the number of items in the list.
static const QMetaObject staticQtMetaObject
QScopedPointer< QObjectData > d_ptr
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
int qstrcmp(const QByteArray &str1, const char *str2)
QThread * thread() const
Returns the thread in which the object lives.
void reserve(int size)
Attempts to allocate memory for at least size bytes.
static Type nameToType(const char *name)
Converts the string representation of the storage type given in name, to its enum representation...
static const KeyPair *const end
The QThread class provides a platform-independent way to manage threads.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QByteArray & remove(int index, int len)
Removes len bytes from the array, starting at index position pos, and returns a reference to the arra...
virtual const QMetaObject * metaObject() const
Returns a pointer to the meta-object of this object.
const char * name() const
Returns the name set in the constructor.