Qt 6.11 is out! See what's new in the release
blog
Reusable component using difference function
-
Hi there....
i want to create reusable component with rectangle and mouse Area but if use that component, i want to call different function,. can i achieve that?
please give me a example.. thanks a lot guys -
@mr.jo Hi,
exemple ://ExempleComp.qml Rectangle{ signal mySignal() MouseArea{ anchors.fill:parent onClicked:mySignal() } }//main.qmlfunction mySignalHandler(_ind) {
switch(_ind)...
}Repeater{
model:5
ExempleComp{
onMySignal: mySignalHandler(index)
}
}