Results 1 to 2 of 2

Thread: wheel event problem

  1. #1
    Join Date
    Jan 2009
    Posts
    33
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Post wheel event problem

    hi,

    i rendered the some picture by polygons in qglwidget.
    i used belo functions

    initializegl();
    paintgl();
    resizegl();

    in side paintgl() just i cler buffers and call draw() function, in which i have algorithm for rendering

    for zooming and panning i have written code inside

    wheelevent()
    mousemove event()

    now problem is when i move the mouse or moving wheel instantly it is not updating the glwidget.

    but when i resize window it is updating. the same thing is happening even for push buttons.in this case once after clicking the pushbuttons if click mouse on screen it is updating

    can anyone help me in this regard so that i'll be thankful to you and i can move furher in my project

    thanks and regards
    bhogasena reddy

  2. #2
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: wheel event problem

    You need to call updateGL( ) at the end of your wheelevent and mouseMoveEvent functions. You need to tell your QGLWidget when you want to update and the proper way to do this is by calling updateGL( ) which inherently calls paintGL( ).

Similar Threads

  1. problem in mouse event
    By bhogasena in forum Qt Programming
    Replies: 0
    Last Post: 28th January 2009, 12:58
  2. Q3Table event filter problem
    By batileon in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2008, 10:40
  3. Problem in MouseMove Event
    By Gamalof in forum Qt Programming
    Replies: 4
    Last Post: 17th June 2008, 20:24
  4. Replies: 1
    Last Post: 16th October 2007, 22:41
  5. event problem
    By windkracht8 in forum Qt Programming
    Replies: 5
    Last Post: 17th August 2006, 11:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.