Results 1 to 15 of 15

Thread: Mindmapping widget

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

    Default Mindmapping widget

    Hi,

    I intend to write an app in which I arrange certain items graphically. Sort of like a mind map drawing. Then, when I select an item, I could e.g. show records in a database that match certain criteria.

    So I would like a widget on which I can draw this, and get a signal when items are selected.

    I looked at Flo and VYM, but these are both really complex so it would be a lot of work to integrate them into my project.

    I could start from the 'Diagram Scene' demo and add functionality to this, but then I will be spending quite a lot of time in re-implementing something that already exists, while it is not the main functionality of my application.

    Does anyone have any other suggestions of a widget or class that I could integrate in my application ?

    Best regards,
    Marc

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Mindmapping widget

    Use QGraphicsView as it is item-based and you can select those items.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

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

    Default Re: Mindmapping widget

    Yes, the Diagram Scene demo and VYM and Flo indeed use a QGraphicsView and GraphicsScene and so.

    But I would like to re-use some existing widget if possible.

    Regards,
    Marc

  4. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Mindmapping widget

    There's no doubt that QGraphicsView/Scene/Item is the preferred way to do this. You'll basically have to reimplement everything those classes already do, or a significant portion of it.

    Take an hour to read through the documentation for those classes, and to look at the demos that are availalble. They're very simple to use, and will save you a great deal of time.

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

    Default Re: Mindmapping widget

    Hi,

    I understand that.. But the drawing of the diagram is not the most important functionality of my intended application. I would rather concentrate on the other functions and use something ready-made for the diagramming.

    You know, software reuse, not reinventing the weel, prioritizing features, things like that...

    If no alternatives present themselves, I think I'll take a closer look at the Diagram Scene demo. Maybe I can do with what is implemented there already, and turn it into a standalone widget. Someone made an extension of the Diagram Scene demo it by the way (QDiagram).

    Best regards,
    Marc

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Mindmapping widget

    I think you can find such components here:
    http://www.vcreatelogic.com/products/gcf/

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

    Default Re: Mindmapping widget

    Hi tbscope,

    The 'generic com component framework' of VCreateLogic seems to be a framework to allow different teams to collaborate on building large software applications. I don't see how this could be turned into a small widget to draw some basic charts

    You are working for that company, right

    Regards,
    Marc

  8. #8
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Mindmapping widget

    Quote Originally Posted by marcvanriet View Post
    You are working for that company, right
    No :-)
    But that's always the danger when posting links to companies.

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

    Default Re: Mindmapping widget

    Hi,

    So started making something myself. Got the basics working now : adding and deleting nodes, saving and loading (from an XML text), selecting nodes and moving them around.

    For anyone interested : see the attachment.

    I think it works quite nice : just an object that can be added to any graphicscene (so it doens't require its own dedicated graphics scene but handles its own functionality). Application is signalled when a node is selected.

    Still so much to do : making it look much nicer, dragging nodes onto other ones to change the parent node, auto-arranging of child nodes, changing appearance node-by-node (color, font, ..), ...

    Best regards,
    Marc
    Attached Files Attached Files

  10. #10
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Mindmapping widget

    Hi,

    I would like to have a look at your attachment.

    What kind of file format is this?

    After unzipping what editor/viewer could be used on windows? When i open it with notepad, i see a lot of strange symbols.

    Thx for filling in the obvious...but not for me obviously.

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

    Default Re: Mindmapping widget

    Strange... it is just a normal zip file that contains some directories with a Qt project and source code. Nothing special about it.

    I can't post a message with an attachment right now. I think it has to do with the firewall settings of my router. Will post a .rar file later.

    Regards,
    Marc

  12. #12
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Mindmapping widget

    Hi,

    When I unzip it, I get a folder "Graph" with one file named "Graph", without extension.
    When I unzipped that file also, I get the files you mention.

    So unzipping twice works for me.

    @ Marcvanriet Thanks for sharing

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

    Default Re: Mindmapping widget

    Too bad, you can't upload a .RAR. Here's a .ZIP again, but created with 7ZIP. Please let me know if it doesn't work.

    Regards,
    Marc
    Attached Files Attached Files

  14. #14
    Join Date
    May 2011
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Mindmapping widget

    Quote Originally Posted by marcvanriet View Post
    Hi,

    So started making something myself. Got the basics working now : adding and deleting nodes, saving and loading (from an XML text), selecting nodes and moving them around.

    For anyone interested : see the attachment.

    I think it works quite nice : just an object that can be added to any graphicscene (so it doens't require its own dedicated graphics scene but handles its own functionality). Application is signalled when a node is selected.

    Still so much to do : making it look much nicer, dragging nodes onto other ones to change the parent node, auto-arranging of child nodes, changing appearance node-by-node (color, font, ..), ...

    Best regards,
    Marc
    Hey , Bro ,Thanks a lot!It helps a Lot!

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

    Default Re: Mindmapping widget

    You're welcome.

    I abandoned this little project myself, so didn't add any more functionality. There is a problem with the class in that redrawing isn't done well when you change the text of a node (when the new text is shorter), but I never found out why.

    Best regards,
    Marc

Similar Threads

  1. Replies: 10
    Last Post: 29th May 2010, 18:42
  2. Replies: 7
    Last Post: 14th January 2010, 08:47
  3. Replies: 4
    Last Post: 3rd October 2009, 08:19
  4. Replies: 4
    Last Post: 3rd March 2008, 22:15
  5. Replies: 1
    Last Post: 5th November 2006, 23:50

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.