Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.6
Description
Sometimes we have to deal with a dilemma of `void foo(Type)` vs `void foo(const Type &)`:
a) these are different overloads of the same function
b) they can be mixed with other overloads e.g. `void foo()`
This problem occurs particularly in signal-slot connections as qmltc attempts to connect a signal handler to a signal via QObject::connect() using its typed interface.
The overloads themselves can be resolved with qOverload<Ts...>() utility but that is not good enough on its own since qmltc needs to provide exact types to this function (and it currently fails to do so for `void foo(const Type &)` emitting `qOverload<Type>(&ObjType::foo)`)
Attachments
Issue Links
- is covered by
-
QTBUG-110029 [6.5] qmltc with signals does not compile MouseArea.onPressed
- Closed
- relates to
-
QTBUG-105538 qmltc evolution collection task
- Open
-
QTBUG-109755 [qmltc]: Text.onTextChanged qmltc error
- Closed