[Interest] qRegisterMetaType<QProcess::ExitStatus>("QProcess::ExitStatus");
Guido Seifert
wargand at gmx.de
Mon Mar 2 21:55:34 CET 2015
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?
Guido
More information about the Interest
mailing list