Results 1 to 12 of 12

Thread: GraphicsView / ModelView Integration ???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GraphicsView / ModelView Integration ???

    Graphics view and Model/View are conceptually similar, but implemented very differently. However, there is no reason you cannot write a QAbstractIemView that uses QGraphicsScene/View for visualization. It would be a considerable effort, but the results could be very nice.

    Alternatively, since QAbstractItemModel is merely a wrapper around the underlying data, you can always have the QGraphicsScene access that data directly, bypassing model/view.

  2. #2
    Join Date
    May 2008
    Location
    Belgium
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GraphicsView / ModelView Integration ???

    Any hints or tips on the current approach in your implementation?

    I was thinking the same thing for a computer-aided design application: a MVC framework for the data, but at the same time, multiple representations (treeview, diagram using GraphicsView, regular 3D view using OpenGL etc...).

    Choose one? Combine both?

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.