Results 1 to 2 of 2

Thread: Avoid frezes while running functions

  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Avoid frezes while running functions

    Hi all!

    I have google this already but haven't found anything that works with my case.

    So, I have 2 widgets that use the same QThread. What the thread does is gets images from an ethernet camera and in one widget it shows the live picture and the other on works like a tool box and uses the same thread to get images and compare then to models with a 3rd party software called halcon.

    My problem is that while I am comparing images, which can take more than 1 min, I don't get anymore livepictures because the Gui is frozen. As soon as the function ends I get live pictures again and therefor there is no problem with the thread.

    I can't run the live picture widget in a thread because as far as I know I can't mix threads with gui classes. How can I avoid that from freezing?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Avoid frezes while running functions

    [wiki]Keeping the GUI Responsive[/wiki]
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 8th January 2010, 17:03
  2. How to avoid to repeat a connection
    By Auryn in forum Qt Programming
    Replies: 1
    Last Post: 8th July 2009, 15:47
  3. How can I avoid a QDialog close?
    By ricardo in forum Qt Programming
    Replies: 7
    Last Post: 11th May 2009, 19:29
  4. Avoid full recompilation
    By ^NyAw^ in forum General Programming
    Replies: 15
    Last Post: 6th October 2008, 11:31
  5. Replies: 1
    Last Post: 17th May 2006, 00:23

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.