Results 1 to 2 of 2

Thread: Change LCD color depending on the condition

  1. #1
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Change LCD color depending on the condition

    Hello. I am newbie, and I have problem. I have QLCDNumber with sheetstyle "color: rgb(44, 103, 0)".
    And what I want to do:
    This is green color. I want to make the condition: eg. If value on QLCD > 50, set sheetstyle to "color: rgb(16,78,139)".
    Is it possible to do? If yes, how to make this? I would ask for some tips.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Change LCD color depending on the condition


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

    lamusek17 (18th April 2012)

Similar Threads

  1. How to change color of Tab in QTabWidget?
    By rajesh in forum Qt Programming
    Replies: 10
    Last Post: 21st October 2013, 07:52
  2. change color during a loop
    By 21did21 in forum Newbie
    Replies: 2
    Last Post: 2nd July 2011, 01:13
  3. Change in color map?
    By bigjoeystud in forum Qwt
    Replies: 4
    Last Post: 8th September 2010, 20:00
  4. Replies: 3
    Last Post: 22nd January 2010, 16:46
  5. how to change backgroup color, button color and shape?
    By lzha022 in forum Qt Programming
    Replies: 10
    Last Post: 16th June 2008, 22:25

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.