Results 1 to 2 of 2

Thread: How to increment Lcd number continously without stopping the main program

  1. #1
    Join Date
    Feb 2012
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to increment Lcd number continously without stopping the main program

    Hi Guys,

    I am new to c++ and Qt, I am using LCD number widget to display number on my main widget. I want to increment- decrement this number continuously, more like a meter. I tried to have a while loop to change the number in the main function but this dosent show the display as if it is stuck.

    Any ideas on how this can be done.
    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: How to increment Lcd number continously without stopping the main program

    Use a timer.
    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: 2
    Last Post: 7th December 2010, 16:13
  2. Replies: 0
    Last Post: 20th August 2010, 14:45
  3. Increment and Decrement Program
    By priya in forum Qt Programming
    Replies: 3
    Last Post: 3rd February 2010, 14:27
  4. Replies: 12
    Last Post: 9th April 2008, 14:49
  5. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 10:26

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.