×

Discussion Board

Search:

Type: Posts; User: pta0007; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    896

    setScrollPosition() doesn't work

    Hi,

    I want to set the scroll position of a QWebview object when created. Here is the function I tried:


    QWebFrame *frame = webview->page()->mainFrame();

    const QPoint position =...
  2. Replies
    3
    Views
    1,740

    How To Initialize The QImage Array

    Hi,

    First of all, is it legal to create QImage object as an array? would be something like


    QImage Images[];

    If so, how could I initialize the Images[] by loading the images?
  3. Replies
    3
    Views
    1,687

    Re: Simulate Mouse Move Events Accurately?

    Yes, that's what I would like to ask about. You have any idea or good sources on how to do the animation? Cheers.
  4. Replies
    3
    Views
    1,687

    Simulate Mouse Move Events Accurately?

    Hi,

    I am trying to simulate the mouse click-move-release events without actually touch the mouse on a drawing application. What I did is


    QMouseEvent event_click(QEvent::MouseButtonPress,...
  5. Replies
    12
    Views
    1,478

    Re: How To Generate Mouse Events Without A Mouse

    OK. My question is back to the qmouseevent.

    Now I can call the QEvent::MouseButtonPress, QEvent::MouseMove, QEvent::MouseButtonRelease sequentially in a timeroutSlot(). I have a webview which...
  6. Replies
    12
    Views
    1,478

    Re: How To Generate Mouse Events Without A Mouse

    Hi, here is a debug error,
    Object::connect: No such signal QTimer::timeoutSlot()
    I tried to define it like

    private slots:

    void timeoutSlot();
  7. Replies
    12
    Views
    1,478

    Re: How To Generate Mouse Events Without A Mouse

    Hi, I am not sure I could understand the code. Here are several confusions. The funciton of timeoutSlot() is timer's signal like timeout(), or its a slot itself? If timeoutSLot() is a member funciton...
  8. Replies
    12
    Views
    1,478

    Re: How To Generate Mouse Events Without A Mouse

    Is it possible to set up the speed of move, eg: I want to move the mouse when pressed from (100, 50) to (100, 100) in 2secs, and then releasse it, by using the timer?
  9. Replies
    12
    Views
    1,478

    Re: How To Generate Mouse Events Without A Mouse

    Seems that the code below could do the job

    QMouseEvent event(QEvent::MouseButtonPress, pos, 0, 0, 0);
    QApplication::sendEvent(mainWindow, &event);

    While it is easy to define a mouse press...
  10. Replies
    12
    Views
    1,478

    How To Generate Mouse Events Without A Mouse

    Hi forum,

    I've created a widget and defined the mouse event handler for handling mouse press/move event.

    Is it possible to simulate the mouse event or invoke the event handler without a mouse?...
  11. Replies
    1
    Views
    1,868

    Re: QWebView with Google Map JS API v3

    My code to set the webview


    QFile file;
    file.setFileName("./jquery.min.js");
    file.open(QIODevice::ReadOnly);
    jQuery = file.readAll();
    file.close();
    ...
  12. Replies
    1
    Views
    1,868

    QWebView with Google Map JS API v3

    Hi forum,

    I have exactly the same problem as http://developer.qt.nokia.com/forums/viewthread/1643, mouse event just doesn't work. Has anyone got a solution for this yet? Thank you.
  13. Replies
    0
    Views
    4,040

    How To Draw Sphere With QT/OpenGL ES 2.0

    Hi,

    I am trying to draw a sphere with Qt/OpenGL ES 2.0, which is using the shading language. I need to build the vertices, texture coordinates and normals arrays for a sphere. So I wonder if...
  14. Replies
    6
    Views
    1,965

    Re: Can't Paint On QWebView

    yes, get the paint function work now. But the problem went worse. The QWebView widget just kept flashing and the speed of the app increased slowly. It looks like every time when the timeevent is...
  15. Replies
    6
    Views
    1,965

    Re: Can't Paint On QWebView

    Thx for the advice. PaintEvent() works now.

    The application is stuck when I start it, which looks like the application is still running without any error, but the googlemap can't be loaded and the...
  16. Replies
    6
    Views
    1,965

    Can't Paint On QWebView

    Hi,

    In my code, I created a class inherited from QWebView, and in that class, I had a paint() function which would paint sth and show on the webview object. The code looks like


    class...
  17. Replies
    2
    Views
    1,179

    Google Map on N900, Little Problems

    Hi all,

    I am now developing the navigation app with google map api. With a simple picece of code from http://wiki.forum.nokia.com/index.php/Qt_sample_application:_Google_maps, I am able to make...
  18. Thread: QT 4.7 on N900

    by pta0007
    Replies
    5
    Views
    1,247

    Re: QT 4.7 on N900

    Where do u put all those apps on the device? If you want to run the app from terminal, they should be put in the root directory. Basically, when you copy the file to the N900 on the PC, they are in...
  19. Thread: QT 4.7 on N900

    by pta0007
    Replies
    5
    Views
    1,247

    Re: QT 4.7 on N900

    Are you sure the file is executable? Try chmod +x AppName first, then ./AppName
  20. Replies
    3
    Views
    3,255

    Re: Compile Error With QtOpenGL

    This might be the cause for "conflicting declaration".

    QGLWidget includes gl2.h, and that widget is going to expect the functionality of the GLES2 library during runtime (which is GLES2/gl2.h),...
  21. Replies
    3
    Views
    3,255

    Re: Compile Error With QtOpenGL

    pkg-config --list-all | grep glu give me this

    glu glu - Mesa OpenGL Utility library
    glut glut - Mesa OpenGL Utility Toolkit library

    Do you mean it's illegel...
  22. Replies
    3
    Views
    3,255

    Compile Error With QtOpenGL

    Hi, I am trying to compile an app which uses QtOpenGL for renderring. I compile the app in FREMANTLE_ARMEL,
    and here are my header files

    #include <qgl.h>
    #include <QtGui/QWidget>
    #include...
  23. Replies
    7
    Views
    1,591

    Re: Open Dynamic Engine, For N900

    I have got a question when trying to compile the demo provided in the ODE package. Since the ODE is using OpenGL for rendering, how could I get it work with QtOpenGL (which is OpenGL ES 2.0, I think)...
  24. Replies
    7
    Views
    1,591

    Re: Open Dynamic Engine, For N900

    Fantastic, thx.
  25. Replies
    7
    Views
    1,591

    Open Dynamic Engine, For N900

    I've found two interesting demos showing the usage of ODE (Open Dynamic Engine) on N900. I just think they're brilliant and cool, but get no idea how to build the ode libs on N900. Hope someone could...
Results 1 to 25 of 83
Page 1 of 4 1 2 3 4
×