Results 1 to 20 of 21

Thread: processEvents() and threads

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: processEvents() and threads

    Isn't placing processEvents() calls inside the calculation process also changing the way the calculations are done? I'm not sure why injecting processEvents() is fine and dividing the code into 10 methods is not.

  2. The following user says thank you to wysota for this useful post:

    talk2amulya (20th February 2009)

  3. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: processEvents() and threads

    no, injecting processEvents() is NOT fine..thats why i m finding an alternate solution..the management is adamant at making no changes to the "calculation" function..and now the torch has been passed..i have been taken off the issue and sm QT guru would be looking after the issue..i m really looking forward to his stance on this thank you all for your time!

  4. #3
    Join Date
    Jan 2006
    Posts
    132
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 16 Times in 16 Posts

    Default Re: processEvents() and threads

    This may seem a elaborate solution just to get marketing happy, but how about spawning a mini-app in a second process just displaying the splash?

  5. The following user says thank you to seneca for this useful post:

    talk2amulya (20th February 2009)

  6. #4
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 66 Times in 62 Posts

    Default Re: processEvents() and threads

    wow, now thats smth that may catch their attention cuz they DO NOT wanna change ANTH in the calculation function...who knows..but thanks man, that might be a good thing to remember as solving a problem..just spawn another process

  7. #5
    Join Date
    Jan 2006
    Posts
    132
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 16 Times in 16 Posts

    Default Re: processEvents() and threads

    This is something I was seriously considering for long running print jobs, because for no apparent reason Qt does not allow to print a text document outside the main thread. However there is hope that at least this design flaw might get fixed somewhen:

    http://labs.trolltech.com/blogs/2007...-and-printing/

Similar Threads

  1. Once more: Threads in Qt4
    By high_flyer in forum Qt Programming
    Replies: 5
    Last Post: 9th August 2006, 19:35

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.