Results 1 to 2 of 2

Thread: Best practice to implement a graphic item

  1. #1
    Join Date
    Sep 2010
    Location
    Ontario Canada
    Posts
    23
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Symbian S60 Maemo/MeeGo

    Question Best practice to implement a graphic item

    Hello All,

    I am a beginner when it comes to Qt/C++ coding and an absolute beginner when it comes to coding graphics...
    I am developing an application involving liquid levels in a tank, I would like to have a graphic that shows the liquid level of two different liquids in the tank based on the user input.
    I am thinking I will need an image for my tank that I draw a line on for the liquid level and then fill the tank with a colour up to the line.
    Is this the right approach?
    What class[s] should I look into to accomplish this if this is the right approach?
    This may be way more complicated then a rookie should be tackling?
    Thanks for any input!
    Cheers,
    Jon

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

    Default Re: Best practice to implement a graphic item

    Hi,

    Maybe you can use this widget : QGauge. Or you can just use a QSlider.

    I would advise to keep it simple at first and use existing widgets. If you get the rest of your application working, you'll be more familiar with Qt and may try and implement your own widget or graphics representation.

    Best regards,
    Marc

Similar Threads

  1. Best practice when handling a slow loading widget?
    By TheNewGuy in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2009, 06:12
  2. Replies: 4
    Last Post: 13th May 2009, 17:50
  3. what's the better practice?
    By xyzt in forum Qt Programming
    Replies: 1
    Last Post: 22nd March 2008, 18:42
  4. Best Practice - delete pointer QAbstractButton in QMessageBox
    By estanisgeyer in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2008, 12:43
  5. QDataWidgetMapper <=> QComboBox best practice
    By saknopper in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2007, 10:50

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.