- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Manages named types in the meta-object system
Java wrapper for Qt class QMetaType
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Convert value of T1 into T2static interface
Writes a value to data stream.static interface
Reads a value from data stream.static interface
Writes a value to debug stream.static final class
This class represents a QMetaType-registered but Java-unknown 8 Bit enumerator.static final class
This class represents a QMetaType-registered but Java-unknown 32 Bit enumerator.static final class
This class represents a QMetaType-registered but Java-unknown enumerator type which can be used in QFlags.static final class
This class represents a QMetaType-registered but Java-unknown QFlags type.static final class
This class represents a QMetaType-registered but Java-unknown gadget type.static final class
This class represents a QMetaType-registered but Java-unknown 64 Bit enumerator.static final class
This class represents a QMetaType-registered but Java-unknown object type.static final class
This class represents a QMetaType-registered but Java-unknown 16 Bit enumerator.static interface
Interface super type for all generic classes representing a QMetaType-registered but Java-unknown value type.static final class
This class represents a QMetaType-registered but Java-unknown value type.static enum
Java wrapper for Qt enumQMetaType::Type
static enum
Java wrapper for Qt enumQMetaType::TypeFlag
static final class
QFlags
type for enumQMetaType.TypeFlag
-
Constructor Summary
ConstructorDescriptionQMetaType
(int type) SeeQMetaType::
QMetaType(QMetaType) QMetaType
(QMetaType.Type type) Overloaded constructor forQMetaType(int)
. -
Method Summary
Modifier and TypeMethodDescriptionfinal long
alignOf()
static boolean
canConvert
(QMetaType fromType, QMetaType toType) clone()
Creates and returns a copy of this object.final int
static OptionalInt
Deprecated.Deprecated.final Object
create()
Overloaded function forcreate(java.lang.Object)
withcopy = null
.static Object
create
(int type) Deprecated.static Object
Deprecated.final Object
final boolean
debugStream
(QDebug dbg, Object rhs) static boolean
debugStream
(QDebug dbg, Object rhs, int typeId) Deprecated.final boolean
final boolean
static OptionalInt
Deprecated.boolean
final QMetaType.TypeFlags
flags()
static QMetaType
fromName
(byte [] name) Overloaded function forfromName(io.qt.core.QByteArrayView)
.static QMetaType
fromName
(QByteArray name) Overloaded function forfromName(io.qt.core.QByteArrayView)
.static QMetaType
fromName
(QByteArrayView name) static QMetaType
Overloaded function forfromName(io.qt.core.QByteArrayView)
.static QMetaType
fromName
(ByteBuffer name) Overloaded function forfromName(io.qt.core.QByteArrayView)
.static QMetaType
fromObject
(Object obj) static QMetaType
int
hashCode()
Returns the objects's hash code computed byqHash(QMetaType)
.static boolean
hasRegisteredConverterFunction
(QMetaType fromType, QMetaType toType) final boolean
final boolean
static boolean
hasRegisteredDebugStreamOperator
(int typeId) Deprecated.final int
id()
Overloaded function forid(int)
witharg__1 = 0
.final int
id
(int arg__1) final boolean
final boolean
final boolean
final boolean
final boolean
final boolean
final boolean
static boolean
isRegistered
(int type) final boolean
isValid()
final Class<?>
javaType()
Returns the Java class for this meta type.static Class<?>
javaType
(int metaTypeId) Returns the Java class for the given meta type ID.load
(QDataStream stream) load
(QDataStream stream, int type) Deprecated.final QMetaObject
static QMetaObject
metaObjectForType
(int type) Deprecated.static int
metaTypeId
(Class<?> clazz, QMetaType ... instantiations) Deprecated.final String
name()
static int
qMetaTypeId
(Class<?> clazz, QMetaType... instantiations) SeeqMetaTypeId<T>()
static int
qRegisterMetaType
(Class<?> clazz, QMetaType... instantiations) static <T1,
T2> boolean registerConverter
(QMetaType.ConverterFn<T1, T2> converterFn) Registers debug stream operator for meta typeT
.static <T> int
registerDataStreamOperators
(QMetaType.DataStreamInFn<T> datastreamInFn, QMetaType.DataStreamOutFn<T> datastreamOutFn) Registers datastream operators for meta typeT
.static <T> int
registerDebugStreamOperator
(QMetaType.DebugStreamFn<T> debugstreamFn) Registers debug stream operator for meta typeT
.static int
registerMetaType
(Class<?> clazz, QMetaType ... instantiations) Deprecated.UseqRegisterMetaType(Class, QMetaType...)
instead.final void
static boolean
save
(QDataStream stream, int type, Object data) Deprecated.final boolean
save
(QDataStream stream, Object data) final long
sizeOf()
static int
sizeOf
(int type) Deprecated.toString()
Seeoperator<<(QDebug,
QMetaType) static int
type
(byte [] typeName) Deprecated.static int
type
(QByteArray typeName) Deprecated.static int
Deprecated.static QMetaType.TypeFlags
typeFlags
(int type) Deprecated.static String
typeName
(int type) Deprecated.static void
unregisterConverterFunction
(QMetaType from, QMetaType to) SeeQMetaType::
unregisterConverterFunction(QMetaType, QMetaType) static void
unregisterMetaType
(QMetaType type) SeeQMetaType::
unregisterMetaType(QMetaType) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QMetaType
public QMetaType()This function was introduced in Qt 6.0.
-
QMetaType
See
QMetaType::
QMetaType(QMetaType) -
QMetaType
public QMetaType(int type) -
QMetaType
Overloaded constructor forQMetaType(int)
.- Parameters:
type
-
-
-
Method Details
-
alignOf
This function was introduced in Qt 6.0.
-
compare
See
QMetaType::
compare(const void*, const void*)const This function was introduced in Qt 6.0.
-
create
-
debugStream
-
equals
See
QMetaType::
equals(const void*, const void*)const This function was introduced in Qt 6.0.
-
flags
-
hasRegisteredDataStreamOperators
See
QMetaType::
hasRegisteredDataStreamOperators()const This function was introduced in Qt 6.1.
-
hasRegisteredDebugStreamOperator
See
QMetaType::
hasRegisteredDebugStreamOperator()const This function was introduced in Qt 6.0.
-
id
-
isCopyConstructible
See
QMetaType::
isCopyConstructible()const This function was introduced in Qt 6.5.
-
isDefaultConstructible
See
QMetaType::
isDefaultConstructible()const This function was introduced in Qt 6.5.
-
isDestructible
See
QMetaType::
isDestructible()const This function was introduced in Qt 6.5.
-
isEqualityComparable
-
isMoveConstructible
See
QMetaType::
isMoveConstructible()const This function was introduced in Qt 6.5.
-
isOrdered
-
isRegistered
-
isValid
-
load
-
metaObject
-
name
-
equals
-
registerType
See
QMetaType::
registerType()const This function was introduced in Qt 6.5.
-
save
-
sizeOf
-
canConvert
-
compare
Deprecated.See
QMetaType::
compare(const void*, const void*, int, int*) This function was introduced in Qt 6.0.
-
convert
-
convert
Deprecated. -
create
Deprecated. -
debugStream
Deprecated. -
equals
Deprecated.See
QMetaType::
equals(const void*, const void*, int, int*) This function was introduced in Qt 6.0.
-
fromName
-
fromType
-
hasRegisteredConverterFunction
-
hasRegisteredDebugStreamOperator
Deprecated.See
QMetaType::
hasRegisteredDebugStreamOperator(int) This function was introduced in Qt 6.0.
-
isRegistered
public static boolean isRegistered(int type) -
load
Deprecated. -
metaObjectForType
Deprecated.See
QMetaType::
metaObjectForType(int) -
qMetaTypeId
See
qMetaTypeId<T>()
-
qRegisterMetaType
-
save
Deprecated. -
sizeOf
Deprecated. -
type
Deprecated.See
QMetaType::
type(::QByteArray) -
type
Deprecated.See
QMetaType::
type(const char*) -
typeFlags
Deprecated.See
QMetaType::
typeFlags(int) -
typeName
Deprecated.See
QMetaType::
typeName(int) -
unregisterConverterFunction
See
QMetaType::
unregisterConverterFunction(QMetaType, QMetaType) -
unregisterMetaType
See
QMetaType::
unregisterMetaType(QMetaType) -
equals
-
hashCode
Returns the objects's hash code computed byqHash(QMetaType)
. -
registerMetaType
Deprecated.UseqRegisterMetaType(Class, QMetaType...)
instead. -
metaTypeId
Deprecated.UseqMetaTypeId(Class, QMetaType...)
instead. -
registerDataStreamOperators
public static <T> int registerDataStreamOperators(QMetaType.DataStreamInFn<T> datastreamInFn, QMetaType.DataStreamOutFn<T> datastreamOutFn) Registers datastream operators for meta typeT
.- Parameters:
datastreamInFn
- (only lambda expressions allowed)datastreamOutFn
- (only lambda expressions allowed)- Returns:
- the registered meta type
-
registerDebugStreamOperator
Registers debug stream operator for meta typeT
.- Parameters:
debugstreamFn
- (only lambda expressions allowed)- Returns:
- the registered meta type
-
registerConverter
Registers debug stream operator for meta typeT
.- Parameters:
converterFn
- (only lambda expressions allowed)- Returns:
- the registered meta type
-
javaType
Returns the Java class for this meta type.- Returns:
- java class
-
javaType
Returns the Java class for the given meta type ID.- Returns:
- java class
-
fromObject
-
toString
See
operator<<(QDebug,
QMetaType) -
clone
Creates and returns a copy of this object.
See
QMetaType::
QMetaType(QMetaType) -
create
Overloaded function for
create(java.lang.Object)
withcopy = null
. -
id
Overloaded function for
id(int)
witharg__1 = 0
. -
create
Deprecated.Overloaded function for
create(int, java.lang.Object)
withcopy = null
. -
fromName
Overloaded function for
fromName(io.qt.core.QByteArrayView)
. -
fromName
Overloaded function for
fromName(io.qt.core.QByteArrayView)
. -
fromName
Overloaded function for
fromName(io.qt.core.QByteArrayView)
. -
fromName
Overloaded function for
fromName(io.qt.core.QByteArrayView)
. -
type
Deprecated.Overloaded function for
type(io.qt.core.QByteArray)
.
-
qMetaTypeId(Class, QMetaType...)
instead.