Results 1 to 3 of 3

Thread: No Response when Algorithm runs...

  1. #1
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: No Response when Algorithm runs...

    Hello Community,

    I have the following problem. I am writing a GUI programm for scientific research on the field of air bearing. I use algorithm to compute the pressure distribution. Now I have the Following hierarchy...

    1. QMainwindow - here I can choose a bearingtype and a subWindow opens
    2. QMdiSubWindow - here I can tell the programm some data the algorithms use
    3. Algorithm - When I click the "Start" button the algorithm starts to compute, but I cant use the Programm anymore till the algorithm has finished computing. "No Response"... I dont want the tool to be unuseable till the algorithm is ready.

    any suggestions ?


    Added after 8 minutes:


    Using QThread is the only way ... ?
    Last edited by revellix; 13th August 2011 at 15:28.

  2. #2
    Join Date
    Aug 2011
    Posts
    4
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default Re: No Response when Algorithm runs...

    create a new threads for this algorithm process
    (I don't know how to do that in QT/C++)
    I have experience a problem like that in java
    Last edited by narutokage; 13th August 2011 at 16:16.

  3. The following user says thank you to narutokage for this useful post:

    revellix (14th August 2011)

  4. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: No Response when Algorithm runs...

    In general, using other thread is not the only way, read more here : link.

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

    revellix (14th August 2011)

Similar Threads

  1. qt algorithm speed up problem
    By leonardhead in forum Newbie
    Replies: 3
    Last Post: 27th August 2010, 01:03
  2. qtthread to speed up the algorithm
    By leonardhead in forum Qt Programming
    Replies: 1
    Last Post: 20th August 2010, 05:09
  3. Algorithm for smallest number not in a list
    By zeldaknight in forum General Programming
    Replies: 4
    Last Post: 7th June 2010, 01:20
  4. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  5. Dijkstra's Algorithm
    By therealjag in forum Qt Programming
    Replies: 2
    Last Post: 6th March 2006, 10:16

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.