qt - Invalid signal parameter type: MouseEvent -
if try , use mouseevent
arg in qml defined signal, following error on load:
invalid signal parameter type: mouseevent
there conflicting information in qt docs regarding this, in qml signal syntax documentation states that:
the allowed parameter types same listed under defining property attributes [...] qml object type can used property type.
whilst in qml/c++ interaction documentation states that:
when qml object type used signal parameter, parameter should use var type
setting argument use var
work, seems unnecessary according qml documentation. there bug regarding in distant past apparently resolved in v5.0.0. doing wrong, or regression?
edit
a simple demonstration:
import qtquick 2.3 item { signal sig( mouseevent mouse ) }
Comments
Post a Comment