[Interest] Accessing existing enums from QML

Jan Kundrát jkt at flaska.net
Wed May 14 10:46:25 CEST 2014


On Wednesday, 14 May 2014 09:04:15 CEST, Kristoffersen, Even (NO14) wrote:
> You can add a wrapper class for the enum inside the namespace 
> for your Qt C++/QML code, non-Qt C++ won't change:

Thanks, but this wouldn't help me -- the application as a whole *is* using 
Qt.

> namespace Imap
> {
> #ifdef QT_VERSION
> 	#include <QObject>

I don't think this would actually work -- including the QObject header 
within a custom namespace seems very fishy.

> It's not the prettiest solution

Now that's a nice euphemism :)

With kind regards,
Jan

-- 
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/



More information about the Interest mailing list