Qt::Alignment is not a metatype - any special reason?



  • I would like to store a Qt::Alignment in a QVariant. Turns out that Qt::Alignment is not registered as a metatype.

    Is there any specific reason for this? Would it be safe to declare it in an appropriate header file of my project, like so:

    @Q_DECLARE_METATYPE(Qt::Alignment)@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.