Congratulations to our 2022 Qt Champions!

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:


Log in to reply