Results 1 to 4 of 4

Thread: wait the application for some time..

  1. #1
    Join Date
    Oct 2009
    Location
    chennai,india
    Posts
    66
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Smile wait the application for some time..

    hi
    I am writing an application which receives data from the serial port.device.
    The application will receive request protocol frequently.
    When the app receives a request protocol ,then it should immediately send the
    acknowledgment protocol to the particular serial device,then this device will send a status
    success protocol.After this status success protocol only,the app can send the acknowledgment to the next received protocol,and then receive the status success protocol and so on.,

    My problem is ,how to make the app to wait for some time say about 1 r 2 sec.,
    within the time it will process the request.
    meanwhile there may be many requests coming to the application ,so all those requests
    should be waited in queue and processed without problem.

    thanks in advance..

  2. #2
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: wait the application for some time..

    QThread is the best option for u . wait in a while loop till the first process completes and proceed for next connection ..

    take a look at Qt::ConnectionType and mandelbrotexample
    "Behind every great fortune lies a crime" - Balzac

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

    mohanakrishnan (9th December 2009)

  4. #3
    Join Date
    Oct 2009
    Location
    chennai,india
    Posts
    66
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: wait the application for some time..

    hi wagmare
    thanks for ur reply ,i ll try and come back...
    thanks

  5. #4
    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: wait the application for some time..

    Quote Originally Posted by mohanakrishnan View Post
    My problem is ,how to make the app to wait for some time say about 1 r 2 sec.,
    within the time it will process the request.
    meanwhile there may be many requests coming to the application ,so all those requests
    should be waited in queue and processed without problem.
    Please don't start multiple threads on the same subject.

    http://www.qtcentre.org/forum/f-qt-p...ing-26385.html
    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. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. Replies: 1
    Last Post: 8th November 2009, 12:49
  3. Replies: 7
    Last Post: 24th November 2008, 11:22
  4. Replies: 10
    Last Post: 10th March 2008, 12:28
  5. Replies: 1
    Last Post: 14th June 2007, 15:52

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.