Obsolete Members for QMetaType | Qt Core 5.6

Qt 5.6 | Qt Core | C++ Classes | QMetaType

Qt 5.6.2 Reference Documentation

# Obsolete Members for QMetaType

The following members of class QMetaType are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Static Public Members

`(obsolete)` void * | construct(int type, const void *copy = Q_NULLPTR)

## Member Function Documentation

### `[static]` void *QMetaType::construct(int type, const void *copy = Q_NULLPTR)

Constructs a value of the given type which is a copy of copy. The default value for copy is 0.

Deprecated, use the static function QMetaType::create(int type, const void *copy) instead.