Results 1 to 7 of 7

Thread: Chart Widget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Chart Widget

    If they are not so complicated it's not such a big deal to create a custom, own widget for that, using the paint event for drawing...

    You could also have a look at Charts for Qt4.

  2. #2
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Qt products
    Platforms
    Unix/X11 Windows
    Thanks
    20
    Thanked 5 Times in 5 Posts

    Question Re: Chart Widget

    Quote Originally Posted by Lykurg View Post
    If they are not so complicated it's not such a big deal to create a custom, own widget for that, using the paint event for drawing...

    You could also have a look at Charts for Qt4.

    I get sample from http://www.wysota.eu.org/charts.html. I tried for add to my Dialog. But i always get crash.

    Qt Code:
    1. ColumnChartView *cv=new ColumnChartView(this);
    2. ...
    3. ....
    4. ui->myLayout->addWidget(cv);
    To copy to clipboard, switch view to plain text mode 

    ColumnChartView inherit from QAbstractItemView. And can't add to Dialog like a Widget ?

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Chart Widget

    Is ui->myLayout valid? What does your debugger says?

  4. #4
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Qt products
    Platforms
    Unix/X11 Windows
    Thanks
    20
    Thanked 5 Times in 5 Posts

    Question Re: Chart Widget

    No myLayout just example.

    I have a TextLabel on my Dialog. And Dialog use verticalLayout. btw, i use qt-creator.

    Debuger ? I just run. And, after dialog show GNONE Bug Reporting tool will opening.

Similar Threads

  1. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 07:06
  2. Widget Focus
    By navi1084 in forum Qt Programming
    Replies: 6
    Last Post: 29th September 2008, 10:22
  3. Playbutton functionality
    By uchennaanyanwu in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2008, 22:29
  4. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 20:39
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35

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.