[Interest] qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus");
Thiago Macieira
thiago.macieira at intel.com
Tue Mar 3 00:43:41 CET 2015
On Monday 02 March 2015 21:55:34 Guido Seifert wrote:
> I am currently playing around with the new signal/slot syntax.
> Modernizing one of my older programs.
>
> When I switched my QProcess connections from ...SIGNAL(finished(int,
> QProcess::ExitStatus)... to function pointers
> I got at runtime:
> > QObject::connect: Cannot queue arguments of type 'QProcess::ExitStatus'
> > (Make sure 'QProcess::ExitStatus' is registered using
> > qRegisterMetaType().)
>
> Yep, qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus"); fixes
> this problem. Strangely this problem does not exist with
> QProcess::ProcessError.
>
> I suppose this enum is already registered somewhere. Maybe
> QProcess::ExitStatus also should be registered by default?
I believe this should get done when we switch all enums and flags to the new
Q_ENUM.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list