Results 1 to 5 of 5

Thread: QGLWidget + QEventDispatcherGlib::processEvents performance problem!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Exclamation Re: QGLWidget + QEventDispatcherGlib::processEvents performance problem!

    No reasonable explanation yet, Wysota maybe you have a say on this, I recall that you did help me once with a related issue.
    thanx
    firas

  2. #2
    Join Date
    Jan 2006
    Posts
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Thumbs up Re: QGLWidget + QEventDispatcherGlib::processEvents performance problem!

    Fixed, briefly instead of using qt based QGLWidget::paintEvent, I used directly OpenGL to draw my frames.
    sample would be:
    Qt Code:
    1. ::initializeGL(){
    2. glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    3. }
    4.  
    5. ::paintGL(){
    6. glRasterPos2i(0,0);
    7. glDrawPixels(pImg->width(), pImg->height(), GL_BGRA, GL_UNSIGNED_BYTE, pImg->bits());
    8. glPixelZoom(1.0,-1.0);
    9. glFlush();
    10. }
    To copy to clipboard, switch view to plain text mode 

    For more interesting way google for "OpenGL programming guide (AKA OpenGL RedBook)"
    salutations a tous qui m'aider!!
    firas

Similar Threads

  1. QGLWidget Resize Problem
    By Sandip in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2008, 06:47
  2. QGLWidget 2d painting performance
    By amnesiac in forum Qt Programming
    Replies: 15
    Last Post: 28th January 2008, 14:09
  3. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57
  4. why linking problem with QGLWidget???
    By Shuchi Agrawal in forum Newbie
    Replies: 17
    Last Post: 16th March 2007, 10:45
  5. Problem combining QWorkspace & QGLWidget
    By Nb2Qt in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2006, 21:45

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.