With Respect To ScrollBar To Rectangle
-
hm k kk
-
and one more if we have implementation that works with keys press,
will it work for mouse area on clicked?. -
@Pradeep-Kumar.M Yes should work. Create a function and call that function when required.
-
you mean to say create function form ex: function sample()
{
// implementation
}mouse area{
anchors.fill: id
onclicked
{
sample()
}
} -
@Pradeep-Kumar.M Yes, so that same function can be called from Keys and MouseArea. No need to duplicate the code.
-
what i taught was if there is implementation for keys event
, their will be different implementation for mousearea alse -
@Pradeep-Kumar.M Ofcourse you will need to define a
MouseArea
as well asKeys.onUpPressed
. But if the code that moves the scrollbar is similar then no need to duplicate it. Just put it in the function and call that function. -
ya got it,
keys.onuppressed,keys.ondownpressed, coming from .js file, will the same logic work for mousearea
{
} also . -
@Pradeep-Kumar.M
will the same logic work for mousearea
Depends upon the logic :)
-
@p3c0
k k i''l try.