Results 1 to 4 of 4

Thread: Is there any support in Qt for association management?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Is there any support in Qt for association management?

    I want to say hello to this nice forum with my first question:

    As I understood, Qt provides support for handling of parent-child associations between QObjects. So far so good.

    I am looking for something that supports dealing with more general or loose associations between objects. Something like

    A [1] <------>[*] B

    where A has a method A::getBs() and B has a method B::getA(). Furthermore, the container returned by A::getBs() should be capable of dealing with insertions or deletions also on the other end, which means that if I attach a b:B with an a:A by doing a.getBs().add(b) then b.getA() should return a.

    If there is no support for such things in Qt I will implement on my own (in my code generator). But before I dive into that I wanted to ask the community if something is already available that could fit my need or come close to it.

    thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is there any support in Qt for association management?

    Qt is a C++ framework, that offers implementations to many "low level" programming, allowing you to focus more on what it is you want to do, and not invent the wheel again.(very simply put)

    To your question:
    You can implement what you asked with Qt, but just as good with out it.
    Qt will probably make some of the things easier to code, but it is still C++ , and you still have to implement what ever it is you want to implement.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Oct 2009
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Is there any support in Qt for association management?

    I'm very happy implementing it myself. But I just want to be sure given my newbee status on Qt (after a 10 years Java break) that I do not reinvent any existing wheel. So I conclude that I will need to implement that kind of bidirectional association management myself. Fine...

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is there any support in Qt for association management?

    Your first post is very general.
    If you'll be more specific, we can point you to classes that can probably save you some work.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Installation Problem
    By QbelcorT in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd April 2010, 09:04
  2. Qt 4.4.3 commercial on Kubuntu 8.10
    By Micawber in forum Installation and Deployment
    Replies: 5
    Last Post: 17th February 2010, 01:02
  3. Qt/X11 source-distro apps corrupting KDE Desktop background
    By wdezell in forum Installation and Deployment
    Replies: 5
    Last Post: 23rd July 2009, 21:10
  4. Qt-4.4.0 installation error in linux
    By babu198649 in forum Installation and Deployment
    Replies: 4
    Last Post: 27th May 2008, 14:35
  5. Access to PostgreSQL DB on a linux server
    By rmagro in forum Qt Programming
    Replies: 28
    Last Post: 13th March 2008, 09:02

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.