Results 1 to 4 of 4

Thread: Qt OpenGL data synchronization / Model/View implementation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt OpenGL data synchronization / Model/View implementation

    Thank you for answering!

    Okay so I think I will take the custom approach and just stick to plain signal - slot connections between View and SceneGraph.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt OpenGL data synchronization / Model/View implementation

    Depending on how decoupled you want things to be, you can either implement a setSceneGraph() (or similar) method on the view class and have the view connect up to the scene graph's signals in there, or you can make the connections in your main window class when you create the views. In the first case, the views need to know about the scene graph's signals. In the second case, only the main window needs to know about the signals and slots. This might be appropriate if you don't want the scene graph and the views to know too much about each other so your implementation can remain flexible as it evolves.

Similar Threads

  1. Replies: 8
    Last Post: 16th July 2015, 19:44
  2. Replies: 6
    Last Post: 2nd March 2013, 05:56
  3. Replies: 1
    Last Post: 24th February 2011, 05:54
  4. Replies: 0
    Last Post: 21st April 2010, 12:23
  5. Best approach with model/view implementation
    By awhite1159 in forum Newbie
    Replies: 15
    Last Post: 4th July 2008, 13:15

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.