Results 1 to 8 of 8

Thread: Refresh the mainwindow / functions called in the main loop

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4

    Default Re: Refresh the mainwindow / functions called in the main loop

    Quote Originally Posted by nix View Post
    May be this could help, if you call this method before doing computation, it should refresh you GUI.
    http://doc.qt.io/qt-4.8/qcoreapplication.html#processEvents
    Uhm ok, thank you. It's a method of the QCoreApplication so I assume I should pass a reference to it in my mainwindow, right?

    Quote Originally Posted by anda_skoa View Post
    Be advised that blocking the event processing of the UI thread is usually not a very good idea, since you program will stop responding to any kinds of events.
    No user interaction, no redrawing, no timers, no sockets, etc.

    Cheers,
    _
    I appreciate your suggestions and yes, maybe it would be better to process all this data in a thread but I don't need the GUI when doing the computation (they just load stuff).

    For all the real computation I am using threads indeed.


    Thank you again
    Last edited by valerianst; 1st October 2013 at 17:33.

Similar Threads

  1. Main loop thread loop communication
    By mcsahin in forum Qt Programming
    Replies: 7
    Last Post: 25th January 2011, 17:31
  2. Replies: 4
    Last Post: 19th August 2009, 20:38
  3. main loop
    By dusza in forum Qt Programming
    Replies: 10
    Last Post: 6th June 2009, 18:29
  4. Refresh the Mainwindow at run time
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 15th November 2007, 14:16
  5. mainwindow does not refresh
    By edb in forum Qt Programming
    Replies: 22
    Last Post: 25th January 2006, 17:42

Tags for this Thread

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.