Results 1 to 12 of 12

Thread: GraphicsView / ModelView Integration ???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: GraphicsView / ModelView Integration ???

    Quote Originally Posted by travlr View Post
    Which is why it kinda bothers me that its not naturally integrated already.
    I think it would limit the GraphicsView framework too much.

  2. #2
    Join Date
    Feb 2007
    Posts
    24
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: GraphicsView / ModelView Integration ???

    Quote Originally Posted by wysota View Post
    I think it would limit the GraphicsView framework too much.
    Well I'm definitely not familiar enough yet, but agree that there are most probably un-welcome limitations.

    Just as you (have) and I (am trying to) implement an interface... I don't see the reason yet, why one isn't provided for such a natural, symbiotic relationship.

    Come to think of it, though maybe not practical as is, I believe a Model/View architecture should be at the Qt core itself. ...Everything in life thats not, in some way, a portrayal of chaos... is in a natural hierarchical topology/taxonomy. This holds especially true in computer science, me thinks.
    Last edited by travlr; 7th February 2008 at 23:13.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: GraphicsView / ModelView Integration ???

    Quote Originally Posted by travlr View Post
    Come to think of it, though maybe not practical as is, I believe a Model/View architecture should be at the Qt core itself.
    Funny... Andreas Hanssen (vel Bitto) thinks the same way about QGraphicsView

  4. #4
    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.

  5. #5
    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.