Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.0 Beta1
-
None
-
e1cebe812 (dev), 68d610970 (dev)
Description
my qml file is:
import QtQuick
Rectangle {
id: root
signal mySignal0()
MouseArea {
onPressed: root.mySignal0()
}
}
it does not build:
myitem.cpp:197:14: error: no matching member function for call to 'connect' QObject::connect(this, &MyItem_MouseArea::pressed, this, &MyItem_MouseArea::pressed_slot); ~~~~~~~~~^~~~~~~
afaict the problem is that `QQuickMouseArea::pressed` is overloaded: it's both the getter for the `pressed` property (`bool pressed() const`) and the signal (`void pressed(QQuickMouseEvent *mouse)`)
Attachments
Issue Links
- covers
-
QTBUG-99317 qmltc cannot distinguish method(Type) from method(const Type &)
- Closed