Results 1 to 3 of 3

Thread: Bar chart with different color spaced bars

  1. #1
    Join Date
    Apr 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Question Bar chart with different color spaced bars

    Hello, this is my first post, my name is Nicolas and I'm new to Qt.

    The output of the barchart example is:
    img1.JPG

    And I need something like this:
    img2.JPG

    Removing the sentence:
    Qt Code:
    1. for ( int i = 0; i < numSamples; i++ )
    To copy to clipboard, switch view to plain text mode 

    The output is:
    img3.JPG
    How can I solve it?

    I tried to use the QwtPlotBarChart class insted of QwtPlotMultiBarChart but couldn't set a different color for each bar.

    Regards.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Bar chart with different color spaced bars

    Have a look at the distrowatch example.

    Uwe

  3. #3
    Join Date
    Apr 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Bar chart with different color spaced bars

    Thanks Uwe.

Similar Threads

  1. Replies: 3
    Last Post: 1st January 2011, 16:00
  2. scroll bars are not appearing
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2010, 17:26
  3. Change color of Windows Mobile menu bars
    By hubbobubbo in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 8th April 2010, 17:14
  4. QtItemDelegate for progress bars
    By maxpayne in forum Qt Programming
    Replies: 2
    Last Post: 19th November 2008, 13:26
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

Tags for this Thread

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.