[SailfishDevel] Image.onDoubleClicked event in SilicaFlickable

Giuliettasw users.giulietta at gmail.com
Mon Nov 3 06:04:13 UTC 2014


Write it down in together.jolla.com

Best,
tortoisedoc

Von meinem iPad gesendet

> Am 2.11.2014 um 10.41 schrieb Tomek <discuss at tdress.de>:
> 
> Might this be a bug in SilicaFlickable?
> 
> Does someone know if and when there will be a bug tracking tool for sailfishOS? 
> 
> 
> 
>> Hello jolla developers!
>> 
>> I am wondering why the Image QML element does *not* fire the onDoubleClicked event when placed inside the SilicaFlickable element.
>> 
>> Have a look at this example. With QT´s Flickable element (which I am not suppose to use, of cause) the event is fired and with SilicaFlickable it is not.
>> 
>> 
>> Does someone have an idea what else I could try?
>> 
>> 
>> import QtQuick 2.0
>> import Sailfish.Silica 1.0
>> 
>> Item {
>>   Rectangle {
>>       id: rect
>>       width: 200
>>       height: 200
>> 
>>       SilicaFlickable {
>>           anchors.fill: parent
>> 
>>           Image {
>>               anchors.fill: parent
>>               source: "../res/image.jpg"
>>               MouseArea {
>>                   anchors.fill: parent
>>                   onDoubleClicked: console.log("Silika onDoubleClicked does not fire :(")
>>                   onClicked: console.log("Silika onClicked fired!")
>>               }
>>           }
>>       }
>>   }
>> 
>>   Rectangle {
>>       width: 200
>>       height: 200
>>       anchors.top: rect.bottom
>> 
>>       Flickable {
>>           anchors.fill: parent
>> 
>>           Image {
>>               anchors.fill: parent
>>               source: "../res/image.jpg"
>>               MouseArea {
>>                   anchors.fill: parent
>>                   onDoubleClicked: console.log(„onDoubleClicked fired!")
>>                   onClicked: console.log(„onClicked fired!")
>>               }
>>           }
>>       }
>>   }
>> }
>> 
>> 
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
> 
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org


More information about the Devel mailing list