Results 1 to 5 of 5

Thread: Organisation Chart / Block Diagram

  1. #1
    Join Date
    Sep 2010
    Posts
    14
    Thanks
    5

    Default Organisation Chart / Block Diagram

    I am trying to include the ability to draw simple organisation charts and block diagrams within my application.

    Does anyone have any examples / code that could give me a bit of a head start?

    I have looked at the Diagram Scene example which is a good help but doesn't go quite far enough, i.e. adding pngs for the block diagram or right-angle connectors / attachment points etc.

    Of course I could delve into one of the open source applications like Dia or Umbrello but I think I would get hugely lost in the complexity.

    What I need is something between the two!

    Thanks for any help.

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Organisation Chart / Block Diagram

    Hi,

    I asked the same question some time ago, and looked for existing solutions, but found none.

    Started to make something myself (see Mindmapping-widget, but didn't have the time to finalize it.

    Regards,
    Marc

  3. #3
    Join Date
    Sep 2010
    Posts
    14
    Thanks
    5

    Default Re: Organisation Chart / Block Diagram

    Thanks for that, it looks like a step in the right direction for me, but I am hoping for something with angled connectors etc.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Organisation Chart / Block Diagram

    You could try treating the corner of each right-angled connector turn as another object connected by a simple straight line to another object. The connection between boxes A and B is via a series of lines connecting these corner objects. When your user moves a box object you would need to adjust the position of adjacent corner objects. When you user tries to move a corner object you only allow changes that do not move an adjacent box object, and also adjust any adjacent corner objects. It gets fun fast.

  5. #5
    Join Date
    Sep 2010
    Posts
    14
    Thanks
    5

    Default Re: Organisation Chart / Block Diagram

    Thanks for the pointers. I have found yFiles for Java, pity there isn't a Qt version.

Similar Threads

  1. Replies: 7
    Last Post: 30th May 2011, 23:10
  2. Diagram Painting
    By typhoon1978 in forum Qt Programming
    Replies: 4
    Last Post: 2nd November 2010, 22:11
  3. Unit Test Organisation, and having qmake what I want
    By jrharshath in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2009, 18:59
  4. Class Diagram
    By graciano in forum Newbie
    Replies: 1
    Last Post: 16th January 2009, 20:08
  5. needle diagram
    By darksaga in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2008, 11:01

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.