Results 1 to 2 of 2

Thread: GUI doesn't update in QThreaded opengl application

  1. #1
    Join Date
    Aug 2009
    Qt products
    Unix/X11 Windows

    Default GUI doesn't update in QThreaded opengl application

    I'm having a (what i think it's) strange behaviour using QThread. I'm testing in GNU/Linux with a 3.x kernel

    When I use a render thread to realize the opengl operations that should be drawn in the QGLWidget, if i run it in my Phenom II X4 it works fine. But if I run in a Intel(R) Atom(TM) CPU N550 1.50GHz the GUI is only refreshed when an event it's triggered, (if I move the mouse or press the keyboard) I've tried using a Signal/Event across threads to notify the main thread to update itself but it doesn't work. I've called the update method of the QGLWidget inside the render thread but it doesn't work either.

    I can reproduce it with this example If I add this invocation
    Qt Code:
    1. setRotation(rand()%120,rand()%120,rand()%150);
    To copy to clipboard, switch view to plain text mode 
    inside the run method of the render thread of the ExampleRenderThread.

    The tho machines have the same OS, Archlinux x86_64 with 3.0.7 Kernel

    I don't know if is a hardware related or some QThread setting that I'm missing or event filtering. What may be happening?

  2. #2
    Join Date
    Nov 2012
    Qt products

    Default Re: GUI doesn't update in QThreaded opengl application

    Hi there, did you ever find a solution to your problem? I'm experiencing the same type of problem under Xubuntu 10.42. I have some blinking labels which blink just fine on most machines but on my target platform (a customized panel pc) the blinking becomes completely random... unless I move the mouse continually.

Similar Threads

  1. QGLWidget doesn't update
    By qtbnl in forum Qt Programming
    Replies: 12
    Last Post: 14th February 2011, 17:41
  2. Memory leak in my threaded SSL server application
    By moosa in forum Qt Programming
    Replies: 8
    Last Post: 23rd August 2010, 07:49
  3. access to ui in a threaded application
    By mastupristi in forum Qt Programming
    Replies: 3
    Last Post: 17th June 2010, 10:31
  4. Confusing bug with threaded application
    By kachofool in forum Newbie
    Replies: 1
    Last Post: 15th December 2009, 23:32
  5. Multi Threaded Client Server application
    By live_07 in forum Qt Programming
    Replies: 0
    Last Post: 27th August 2009, 16:32

Tags for this Thread


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.