Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Qt and DDD
Forum Update on Monday, May 27th 2025

Qt and DDD

Scheduled Pinned Locked Moved Brainstorm
6 Posts 6 Posters 5.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    croland
    wrote on 3 Jun 2010, 05:13 last edited by
    #1

    Does anyone know of any open source examples of Qt being used with domain driven development?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lothar
      wrote on 8 Jul 2010, 12:06 last edited by
      #2

      Hello,

      I dont know any such example.

      However, I am curretly trying to implement DDD and Hexagonal Architecture on a toy project (a tetris like game) I am creating to help me learn Qt.

      One of the important things for me is to have a clear separation between the Model and the Gui. I like to have the model to have the less possible dependance to any framework. On c++, this end writing it with only dependance to the STL.

      In case of Qt, I understand the QT Core library propose a lot of very nice features, and some of them seems even better than their STL equivalent. So, after a try with STL, I am now rather trying to develop the model on QT Core library, keeping the QT Gui depedency away.

      At last but not least, I am using Google Gtest to develop the model the TDD way (I am an agile/TDD fan :-))

      more about hexagonal architecture here: http://alistair.cockburn.us/Hexagonal+architecture

      Please let me know if you have any remark, question :-)

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on 8 Jul 2010, 12:36 last edited by
        #3

        @lothar: To maximize your Qt-learning efficiency you should use QtTest in favor of GTest;-)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alexbravo
          wrote on 10 Jul 2010, 01:03 last edited by
          #4

          It would be nice to add (Domain Driven Development) to the title. Otherwise it can be easily confused with DDD debugger:

          The Art of Debugging with GDB and DDD
          http://oreilly.com/catalog/9781593271749

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DenisKormalev
            wrote on 10 Jul 2010, 08:15 last edited by
            #5

            AlexBravo, yeah, I'm also firstly thought about DDD tool, not about DDD technique.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mario
              wrote on 12 Jul 2010, 10:36 last edited by
              #6

              Chris, I'm also very interested about this topic. I haven't done much DDD myself but I have read about it and done some toying.

              One thing I toyed with was to create a Repository to fetch entities (json-objects from the internet). I found it hard to use QNetwork because the asynchronous nature of the module. Repositories are often modeled to return an entity and the entity can then be used to traverse the children etc.

              Do you have any examples I can take a look at?

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved