Hi Sebastiano,

I use your project and it works fine here.

However, I find the vibration is week even if I set it to 100(maxValue). It
is weaker than the system SMS coming. Then I realize the value range is
from -100 to 100, not 0 to 100. That means, if I am not wrong, the phone
has 2 vibration motors, one is 0 to 100, the other is -100 to 0. 0 is the
minimum value and the 100 and -100 are two different motors. So I use two
Vibra elements for a test.

Vibra {
>
>             id: vibraClockwise
>
>         }
> Vibra {
>
>             id: vibraCounterClockwise
>
>         }
>
>
 Then I start and stop them together and get what I want in my Nokia N8.

vibraClockwise.start(0, 100)
>
> vibraCounterClockwise.start(0, -100)
>
>
I think maybe you should change you project source code, and let the 2
vibration working together with the range value of 0 to 100. Then people
like me can create just one Vibra element and get what they want. The only
risk is, are all Nokia phones have 2 motors. I think so, but I do not have
any evidence.

Owen

On Thu, Mar 22, 2012 at 5:36 PM, 肇鑫 <owe...@gmail.com> wrote:

> Hi,
>
> Thank you. I have test you example file in my N8 with nokia belle. It
> works.
> Also, I find that if you phone is connected to the pc by usb cable, it
> will not vibrate.
>
> Owen
>
> On Thu, Mar 22, 2012 at 4:39 PM, Sebastiano Galazzo <
> sebastiano.gala...@gmail.com> wrote:
>
>> Hi,
>>
>>  may be my project can be useful for you:
>>
>> http://projects.developer.nokia.com/QVibra
>>
>> http://www.developer.nokia.com/Community/Wiki/How_to_use_QVibra_to_enable_vibration_in_QML
>>
>> Il giorno 22 marzo 2012 07:47, 肇鑫 <owe...@gmail.com> ha scritto:
>>
>>>  Hi,
>>>
>>> I want to vibrate the phone like vibration when it get calls.
>>> However, I find that the vibration time is very short. My code is
>>>
>>>
>>>>    1. import QtQuick 1.1
>>>>    2. import com.nokia.symbian 1.1
>>>>    3. import QtMobility.feedback 1.1
>>>>    4.
>>>>    5. Page {
>>>>    6.     id: mainPage
>>>>    7.     Text {
>>>>    8.         id:helloWordText
>>>>    9.         anchors.centerIn: parent
>>>>    10.         text: qsTr("Hello world!")
>>>>    11.         color: platformStyle.colorNormalLight
>>>>    12.         font.pixelSize: 20
>>>>    13.     }
>>>>    14.
>>>>    15.     Button {
>>>>    16.         anchors.horizontalCenter: parent.horizontalCenter
>>>>    17.         anchors.top: helloWordText.bottom
>>>>    18.         text: qsTr("Vibration")
>>>>    19.         HapticsEffect {
>>>>    20.             id: rumbleEffect
>>>>    21.
>>>>    22.             intensity: 1.0
>>>>    23.             duration: 30000
>>>>    24.
>>>>    25.         }
>>>>    26.         MouseArea {
>>>>    27.             onClicked: {
>>>>    28.             rumbleEffect.start();  // plays a rumble effect
>>>>    29.             }
>>>>    30.         }
>>>>    31.     }
>>>>    32. }
>>>>
>>>> Do I choose the wrong api? Is there any other api can do the vibration
>>> as well?
>>> Thank you.
>>> --
>>>
>>> Owen Zhao
>>>
>>>
>>> _______________________________________________
>>> Qt-mobility-feedback mailing list
>>> Qt-mobility-feedback@qt.nokia.com
>>> http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback
>>>
>>>
>>
>>
>> --
>> Sebastiano Galazzo
>>
>> Mobile     .: +39 3385482810
>> Skype Id .: sebastiano.galazzo
>>
>
>
>
> --
> 肇鑫
> Owen Zhao
> tel/miliao:18602412580
> qq:66975918
> msn:hutig...@hotmail.com
>
>


-- 
肇鑫
Owen Zhao
tel/miliao:18602412580
qq:66975918
msn:hutig...@hotmail.com
_______________________________________________
Qt-mobility-feedback mailing list
Qt-mobility-feedback@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback

Reply via email to