Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2009

    mouse move events in n810

    I recompiled the scribble example of Qt to run on n810. It is working but the scribbling is not smooth. It seems the mouse move events are not triggered properly. Is there any solution to it?
    Link to scribble example- http://doc.trolltech.com/4.3/widgets-scribble.html

    A detailed explanation of the problem: In Scribble example of Qt, we can draw over an image using mouse. It starts the drawing when mouse press event is triggered and as we move the mouse (while it is pressed) the application keeps on connecting the coordinates(using drawLine()) through which the mouse passes. This stops on mouse release. So if you draw a circle, each adjacent point on the circle will be connected by a line and so it will look like a smooth circle. It works perfectly on my x86 laptop. Now I have recompiled for running on maemo 4 running on n810. When I try to draw on it, it does not draw smoothly. If I try to draw a circle, it will connect a few dots on the circle by using lines. Possibly this is because mouse move event is NOT triggered at each little movement of the stylus.

    Thanks in advance,

  2. #2
    Super Contributor
    Join Date
    Oct 2009

    Re: mouse move events in n810

    You may verify that events are coming from X sever properly in osso-sketch application, which has similar functionality.
    It's hard to say what is wrong as I don't have possibility to test it on the real device, but what could be potentially wrong is
    ScribbleArea::mouseMoveEvent. There is a check for Qt::LeftButton, which could fail for some reason. You can add debug messages to mouse event handlers:
    qWarning() << event;
    to debug the issue.

  3. #3
    Super Contributor
    Join Date
    Oct 2009

    Re: mouse move events in n810

    There is a performance issue with scribble example, it redraws whole widget are on every mouseMoveEvent.
    You can download fixed scribble example from here:

Similar Threads

  1. Mouse Events N810
    By dunff2k in forum Mobile Java General
    Replies: 4
    Last Post: 2009-06-07, 09:31
  2. How to move mouse with camera motion & bluetooth?
    By Satyajit in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-12-11, 14:37
  3. Replies: 0
    Last Post: 2007-12-11, 14:12
  4. BT GPS mouse not detected
    By ueffchen in forum Mobile Web Server
    Replies: 3
    Last Post: 2007-06-14, 13:07
  5. Replies: 0
    Last Post: 2007-04-03, 17:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts