Results 1 to 10 of 10

Thread: Hierarchical disparate data structure and MVD (QStandardItemModel / QTreeView)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,349
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: Hierarchical disparate data structure and MVD (QStandardItemModel / QTreeView)

    I used Qwt 5 for a long time, but I didn't move to Qwt 6 because Uwe made too many incompatible changes along with some unconventional API choices. It would have been too hard to port my code.

    I paid for an early commercial license to QtCharts when they were first introduced. It makes attractive charts, but is completely impossible to customize if what comes out of the box doesn't exactly fit your needs. You can't add new series or chart types because all of the implementation details are in hidden private classes, and there are no virtual functions in the public interfaces that would allow you to override behavior. It's a terrible design and isn't at all Qt-like because it is so rigid.

    QCustomPlot seems to have the most promise but I haven't investigated too deeply other than download the package and try some of the examples.

    I eventually wrote my own data plotting widget which uses parts of Qwt (for axes mostly) and uses QGraphicsView for the main canvas, but it is limited to line and scatter plots. For my data visualization, I need to display scatter plots where each individual point has not only a position but can have a size and color different from other points. I also needed to feed data to the plot from a QAbstractItemModel through a proxy model that selects columns from a source model to be used for position, color, and size and which will update the plot in real time as the source model changes.

    Probably at some point I will port over to QCustomPlot; it looks like the new 2.0.0 version can be customized to do most of what I am doing, plus I get the advantage of many more graph types.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    NameRakes (24th December 2016)

Similar Threads

  1. Searching a hierarchical QStandardItemModel
    By Zoober7 in forum Qt Programming
    Replies: 5
    Last Post: 21st June 2013, 09:45
  2. Replies: 1
    Last Post: 3rd November 2011, 22:17
  3. QStandardItemModel, parent / child to form tree structure
    By Nightfox in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2010, 17:01
  4. Saving hierarchical structures of data.
    By psih128 in forum Qt Programming
    Replies: 1
    Last Post: 30th July 2009, 08:33
  5. Display data from QStandardItemModel in QTreeView
    By jprice01801 in forum Qt Programming
    Replies: 7
    Last Post: 10th January 2007, 09:34

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.