[Qt-interest] Q_ENUM registering Problem

Aaron Lewis aaron.lewis1989 at gmail.com
Thu Apr 15 10:13:52 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/15/2010 03:53 PM, Denis Akhmetzyanov wrote:
> Hi,
> Is function QString fetchPic(MState state) in the mpainter class? Otherwise
> you should use:

fetchPic is part of mpainter class

class mpainter : public QDialog {
        Q_OBJECT
        Q_ENUMS (MState)

        enum MState{ready,wait,lost};

	private:
		QString fetchPic(MState state);
}

In construct function of mpainter:

I tried to call fetchPic:
===========================================

QString aa = fetchPic(MState::ready);

===========================================

Then i got errors like `MState is not a namespace or class'.

Do i use the wrong way to call this function or put the enum declaration
in the wrong place ?

Appreciate any help ;-)



- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvGysAACgkQvf41sEptMqC4UgCg0zFsvkprvvnczfA3BPbVM0Vx
KMQAmwcWjnD9zeA+/6zjPBEHZZW5sXla
=I0+z
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list