Results 1 to 5 of 5

Thread: Displaying temprature.

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Displaying temprature.

    Hi
    how to display temprature in application , i have an gui application now i have to show temprature in this gui app. I do not find any class/api regarding this.
    Please help me.
    Thanks.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Displaying temprature.

    Three options off the top of my head (this is for graphical/visualization, not QLabel->setText(), approach):
    1. Use any lightweight GUI element like line, widget maybe and use QStyleSheet to customize view of that element to Your needs (i.e. if You have some graphics put them in there)
    2. QLabel and place image corresponding to the current temperature value that
    3. Use QWidget and paint it Yourself in paint() event

    to simply display in GUI use i.e.
    Qt Code:
    1. QLabel().setText(QString("%1").(int curTemp));
    To copy to clipboard, switch view to plain text mode 
    Last edited by Talei; 9th August 2011 at 10:59. Reason: updated contents
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  3. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Displaying temprature.

    i have to fetch temprature, how it can do.

  4. #4
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Displaying temprature.

    Temperature of what and from where?

  5. #5
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Displaying temprature.

    If your device has a camera or a web cam, you could use openCV and then the algorithm described here : Wheather rock

Similar Threads

  1. Displaying Menu Bar
    By giriuvce in forum Qt Programming
    Replies: 7
    Last Post: 25th May 2011, 07:20
  2. as displaying an image in a mdi?
    By Lycus HackerEmo in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2010, 12:14
  3. displaying .gif
    By sven-kt in forum Qt Programming
    Replies: 5
    Last Post: 14th October 2009, 12:00
  4. GUI not displaying
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2007, 21:28
  5. QTAbBar not displaying
    By Dune in forum Qt Programming
    Replies: 17
    Last Post: 9th February 2006, 18: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
  •  
Qt is a trademark of The Qt Company.