On Thursday 29 August 2013 19:09:52 Giuseppe D'Angelo wrote:
> Il 29/08/2013 17:11, Martin Koller ha scritto:
> > However how can I do the same with this Qt::AlignmentFlag enum which is not
> > defined inside a QObject ?
>
> There's a trick in place in qnamespace.h:
>
> http://code.woboq.org/qt5
Il 29/08/2013 17:11, Martin Koller ha scritto:
However how can I do the same with this Qt::AlignmentFlag enum which is not
defined inside a QObject ?
There's a trick in place in qnamespace.h:
http://code.woboq.org/qt5/qtbase/src/corelib/global/qnamespace.h.html#50
So: most(all?) enums under
Hi,
I'd like to programmatically get the enum values for Qt::Alignment
(Qt::AlignmentFlag) as strings.
I do this in my code already for e.g. SizePolicy like that:
int idx = QSizePolicy::staticMetaObject.indexOfEnumerator("Policy");
QMetaEnum metaEnum = QSizePolicy::staticMetaObject.enum