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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to