Hi,
I make a program with aim and it move when i roll phone. I try this Sensor but i want roll about 45°.
Can someone help me?
Hi,
I make a program with aim and it move when i roll phone. I try this Sensor but i want roll about 45°.
Can someone help me?
I have next problem i have two MouseArea, first is full background and second is only on one objeck but signals don't work now
onClicked:
{
console.log("this work")
}
I never see: "this work"
i don't understand my code simple
Qt Code:
import ... Item { id: background MouseArea { id: mouse onPositionChanged: { ... //something ... } } Rectangle { id: rect MouseArea { onClicked: { console.log("work") }//this is only test that it's work but it's never emit i never see "work" } } }To copy to clipboard, switch view to plain text mode
i forgot anchors.fill: parent but it it there in each mousearea
In that case your first mouse area overlaps with the second one and overrides it. Thus the first mouse area will work and the second one will not.
ok i will make it else i have duck and i have own crosshair and shotbutton how can i do thath when you press shotbutton you will shot duck i can't use something like if(duck.x == aim.x && duck.y == aim.y) because i want full duck and not only one pixel?
Do you understand me sorry my English is horrible .
Bookmarks