Register metatypes that are used in Qt Designer files to eliminate warnings.
Review Request #127678 - Created April 17, 2016 and updated
Register metatypes to eliminate Qt Desinger warnings.
Registering metatypes for a type used in a widget eliminates
the following types of warnings from Qt Designer on start up
(displayed when designer is started from a console window):
QMetaProperty::read: Unable to handle unregistered datatype
'<class>' for property '<class>::<member>'
Tested dialogs that use the data types.
according to the Qt Docu
qRegisterMetaTypeis (only) needed under some circumstances:To use the type T in QVariant, using Q_DECLARE_METATYPE() is sufficient. To use the type T in queued signal and slot connections, qRegisterMetaType<T>() must be called before the first connection is established.
To prevent complicated issues if we use queued connections ourself in the future the
qRegisterMetaTypeshould go somewhere else. I think it should be
MyMoneyMoneybut I am unsure here.