Results 1 to 13 of 13

Thread: Serious problem with QGLWidget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2007
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Serious problem with QGLWidget

    Hello

    I'm looking to write an opengl based editor using QT but I'm experiencing a problem with QGLWidget. I have implemented a camera class and it moves smoothly when I move it 'programmatically' and from input using the mouseMoveEvent, but when I update the camera using input from keyPressEvent it is erratic and shows what looks like a double image of the previous frame. I've subclassed the QGLWidget and placed it on my main window and tried adding the keyPressEvent function to the opengl widget class and as a function of main window but the same problem remains.

    Has anybody else experienced this problem, which I belive is caused by the high number of keyboard events being sent, and know of a way to work around it for smooth keyboard input?

    I am currently using version 4.3.0beta/Mingw with QDevelop and have an example program that allows you to switch from one input method to another as a test. It contains all the source code and project file too. The download is available here at http://www.alsprogrammingresource.com/Test.zip

    Regards
    Alan
    Last edited by al101; 26th April 2007 at 21:31.

Similar Threads

  1. why linking problem with QGLWidget???
    By Shuchi Agrawal in forum Newbie
    Replies: 17
    Last Post: 16th March 2007, 10:45
  2. Problem combining QWorkspace & QGLWidget
    By Nb2Qt in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2006, 21:45
  3. QGLWidget renderText problem
    By mbjerkne in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2006, 21:35
  4. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.