Results 1 to 9 of 9

Thread: Draw Bar chart in Graphic view

  1. #1
    Join Date
    Apr 2012
    Posts
    49
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Draw Bar chart in Graphic view

    Hi,

    I am trying to draw bar graph in a graphic view. I have downloaded the sample program from the following link and optimized for my requirement. the source is downloaded from the below link
    http://www.wysota.eu.org/?page_id=14&lang=en

    And When i am running this application i am getting the graph in full window instead of view the graph in graphics view

    I am attaching the code for your reference.(Full Project folder tar.gz format)

    Could anyone help me to sort this out to draw this graph in graphics view


    Thanks in Advance

    Regards
    vinithr
    Attached Files Attached Files

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Draw Bar chart in Graphic view

    Use qwt instead. See the tvplot example...
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

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

    vinithr (7th August 2012)

  4. #3
    Join Date
    Apr 2012
    Posts
    49
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Draw Bar chart in Graphic view

    Hi Thanks for your reply. I tried installing using the following command

    svn co https://qwt.svn.sourceforge.net/svnr...anches/qwt-5.2

    After download i run,qmake and make. Its giving error

    Is there any other way tpo do the same.


    Thanks
    Vinithr

  5. #4
    Join Date
    Apr 2012
    Posts
    49
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Draw Bar chart in Graphic view

    Hi,

    I can be able to run tvplot example and i customised as per my needs.


    I have one query,how i can draw that in a graphic view that is present in my mainwindow.?

    Thanks in Advance

    Regards
    Vinithr

  6. #5
    Join Date
    Apr 2012
    Posts
    49
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Draw Bar chart in Graphic view

    Hi,

    I am trying to integrate qwt tvplot to my qt application I am not finding the way to do that.

    Could you please help me out for integrating that to qtmainwindow application

    My actual need is that i need to draw the tv plot into a graphicsview that in the mainwindow.ui


    Thanks in advance

    Regards.
    Vinithr

  7. #6
    Join Date
    Aug 2009
    Location
    coimbatore,India
    Posts
    314
    Thanks
    37
    Thanked 47 Times in 43 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Draw Bar chart in Graphic view

    can u tell ur req in detail?
    Bala

  8. #7
    Join Date
    Apr 2012
    Posts
    49
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Draw Bar chart in Graphic view

    Thanks for your reply.

    I have a QT application that have more than 20 windows .Out of those windows ,i have one window with a graphicsview. In that we need to draw the bargraph. I got a suggestion that tvplot from qwt can be used. so i have installed and compiled qwt and tvplot. Its running perfectly. And i customized the tv plot as per the requirement. Now the issue.

    I need to integrate this plot to a mainwindow that have a graphicsview. If we need we can change that graphicsview to scrollarea or frame or whatever.

    I believe now you understood my problem.


    Here where i am struck.

    Could you please help me to draw this or could you please suggest me any alternate method that can fulfill my requirement.

    Thanks in advance
    Vinithr

  9. #8
    Join Date
    Nov 2013
    Location
    1717 Main St # 900 Dallas, TX 7520
    Posts
    2

    Default Re: Draw Bar chart in Graphic view

    Recently I found a new website that is KoolChart.com which gives the flexibility to work in 3D with support of HTML5.

  10. #9
    Join Date
    Nov 2013
    Location
    1717 Main St # 900 Dallas, TX 7520
    Posts
    2

    Default Re: Draw Bar chart in Graphic view

    Click here to work with these awesome functions.

Similar Threads

  1. Draw a bar chart inisde the QScrollArea
    By ultrasonic in forum Qt Programming
    Replies: 6
    Last Post: 9th August 2012, 20:06
  2. Graphic view for scatter plot
    By hamid ghous in forum Qt Programming
    Replies: 2
    Last Post: 11th August 2009, 15:27
  3. File icon to graphic view
    By been_1990 in forum Qt Programming
    Replies: 10
    Last Post: 1st June 2009, 15:53
  4. View with flow chart?
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 2nd October 2007, 08:26
  5. How to restrict graphic items in view
    By aamer4yu in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2006, 07:46

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.