Results 1 to 3 of 3

Thread: UML + Qt + C++

  1. #1
    Join Date
    Nov 2008
    Posts
    33
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default UML + Qt + C++

    I'm looking for some open source package to help me get a grip on my project which I've implemented with Linux/Qt4.5/Eclipse Integration/Doxygen.

    I have the normal problem: tiny initial project - grew like topsy - now getting progressively difficult to remember what happens where. What I need is some kind of visual modelling package with reverse engineering capabilities and hopefully some understanding of Qt's slots & signals.

    The best I've found so far is BoUML but it has problems importing uis and some bits of mocs (it is pretty good nonetheless!).

    Eclipse has some modelling plugins but the ones I've looked at are Java oriented or they don't allow reversing of existing C++.

    Any thoughts, please?
    Last edited by onamatic; 6th February 2009 at 01:52. Reason: Style

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: UML + Qt + C++

    I'm using Bouml with success for Application Analisys and Design.

    Reverse Engineering is a very difficult functionality to implement especially for C++ where you can use syntax like "#define", "extern" and others not included in UML.

    So, after you reverse code, you have to modify imported classes by hand.

    To import uis you can create an artifact, choose the "text" stereotype and then copy the ui text into the "C++ source text".
    Attached Images Attached Images
    A camel can go 14 days without drink,
    I can't!!!

  3. The following 2 users say thank you to mcosta for this useful post:

    ihope (11th August 2009), onamatic (7th February 2009)

  4. #3
    Join Date
    Nov 2008
    Posts
    33
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: UML + Qt + C++

    That's a useful tip, thank you.

    I have discovered that if you point bouml at a specially created folder containing just the preprocessed output from a project it manages some quite good stuff (ie: ui's with their widgets get reversed well enough to start putting diagrams together for documentation purposes). Further, if you do the same kind of thing in Qt's distro source directories it's possible to reverse the widgets so that you can create communication diagrams with, say, QPushButtons that give you the correct(ish) choice of messages (signals & slots). Very clunky at the moment but shows promise!

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.