Results 1 to 3 of 3

Thread: Running my app in the background

  1. #1
    Join Date
    Feb 2009
    Posts
    143
    Thanks
    8

    Default Running my app in the background

    Hi

    I have built a app that needs to contact a usb device.

    It takes about 20-25 seconds to read 8000 bytes from the device. While the app is doing its work, the comp just freezes.

    I want to know if there is a way to stop this freeze? can i run the app in background while its reading the data from the device?

    I all need to add a progress bar to the app, which can show the approximate time remaining, can anybody suggest me as to how i can accomplish it?

    thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Running my app in the background

    Can you post sample code?

    What resources are you possibly blocking?

    Are you allowing your application thread loop to sleep?

  3. #3
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Running my app in the background

    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. How to detect a running application
    By yogesh in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2009, 10:22
  2. How to redraw QGraphicsScene background in running
    By wisconxing in forum Qt Programming
    Replies: 3
    Last Post: 17th November 2008, 13:10
  3. QLCDNumber with transparent background?
    By PolyVox in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2008, 05:34
  4. background colour
    By kw in forum Qt Programming
    Replies: 6
    Last Post: 11th April 2006, 00:44
  5. Replies: 1
    Last Post: 5th April 2006, 16:44

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.