Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [CLOSED] Class Diagrams?
Forum Updated to NodeBB v4.3 + New Features

[CLOSED] Class Diagrams?

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 5.4k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SteveG
    wrote on last edited by
    #1

    Are there any UML class diagrams for the Qt C++ classes or QML types?

    Thanks.

    Steve

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      This might help : http://stackoverflow.com/questions/9446797/uml-tool-for-qt-applications

      I use Doxygen though.


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SteveG
        wrote on last edited by
        #3

        Rahul,

        I'm looking for existing UML class diagrams for the Qt C++ classes and QML types, not an application to generate them. BTW, does Doxygen generate class diagrams from multiple files?

        Thanks.

        Steve

        1 Reply Last reply
        0
        • M Offline
          M Offline
          moravas
          wrote on last edited by
          #4

          Hi,

          I can suggest that you clone the Qt source, check out the recent version (maybe 5.2) than you can run doxygen on it. I think that this is the easiest way to generate UML diagram.

          Regards,
          Norbert

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SteveG
            wrote on last edited by
            #5

            It's not as easy as you may think. As an example, there are 32 different TextField.qml files in the Qt 5.2.0 that I downloaded for Windows 8, ranging in size from 3KB to 21KB. I have not looked at all 32 but they appear to inherit from Control, FocusScope or Item. There are 3 in the 5.2.0/Src directory and 2 in the Tools/QtCreator directory. The QML type documentation says TextField inherits from FocusScope and there are 6 such TextField.qml files, all in various examples subdirectories. So, which TextField.qml file would I use?

            Thanks.

            Steve

            1 Reply Last reply
            0
            • M Offline
              M Offline
              moravas
              wrote on last edited by
              #6

              Hi,

              you should create a doxygen configuration file, and the first think that you should to do, is to set the configuration to recursive. After the running the doxygen, it will detect and parse the inheritance, create UML type information, etc... If you gernerate HTML output, then you should find a html/index.html file. Open it, and you can whatch the internal structure of the Qt source. Please consider the following link for the doxygen user guide:
              http://www.stack.nl/~dimitri/doxygen/manual/starting.html

              I don't know anythink about the QML support of doxygen.

              Regards,
              Norbert

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SteveG
                wrote on last edited by
                #7

                Reference "post":http://qt-project.org/forums/viewthread/36786/ for additional info.

                Steve

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  Eugene89
                  wrote on last edited by
                  #8

                  This class diagram might be useful:
                  http://qt-project.org/forums/viewthread/36786/
                  though it's not UML.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SteveG
                    wrote on last edited by
                    #9

                    Eugene89,

                    My last reply referenced the same post.

                    Thanks.

                    Steve

                    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