Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Modeling
Forum Updated to NodeBB v4.3 + New Features

Qt Modeling

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 2 Posters 5.3k 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.
  • L Offline
    L Offline
    leo4as
    wrote on last edited by
    #1

    how to install qt modeling in ubuntu ?? (13.10)
    http://qt-project.org/wiki/QtModeling

    leo4as

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      You should have Qt SDK installed. I suggest to use the latest (5.2.1).
      Then you need to retreive the sources, build and install the files.

      mkdir tmp
      cd tmp
      git clone git://gitorious.org/qt/qtmodeling.git
      mkdir build-qtmodeling
      cd build-qtmodeling
      qmake -recursive ../qtmodeling
      make
      make install

      It will be installed in the same directory where Qt SDK is located.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        leo4as
        wrote on last edited by
        #3

        i run "qmake -recursive ../qtmodeling/ " with success
        but make give an error

        In file included from /home/leo/Workspace/Programs/temp/qtmodeling/src/modeling/qmodelingobject.cpp:42:0:
        /home/leo/Workspace/Programs/temp/qtmodeling/src/modeling/qmodelingobject_p.h:45:31: fatal error: private/qobject_p.h: No such file or directory
        #include "private/qobject_p.h"
        ^
        compilation terminated.
        make[2]: *** [.obj/release-shared/qmodelingobject.o] Error 1
        make[2]: Leaving directory /home/leo/Workspace/Programs/temp/build-qtmodeling/src/modeling' make[1]: *** [sub-modeling-make_first-ordered] Error 2 make[1]: Leaving directory /home/leo/Workspace/Programs/temp/build-qtmodeling/src'
        make: *** [sub-src-make_first] Error 2


        there's no file "qobject_p.h"

        leo4as

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          private/qobject_p.h is a part of QtCore module of the Qt installation.

          In my case it is in $HOME/Qt5.2.1/5.2.1/gcc_64/include/QtCore/5.2.1/QtCore/private/qobject_p.h

          I used Qt5.2.1 installer from qt-project.org
          Do you have latest Qt version?
          Do you use Qt from qt-project.org or it is a part of you distribution?

          1 Reply Last reply
          0
          • L Offline
            L Offline
            leo4as
            wrote on last edited by
            #5

            ok tnx i compiled it with Qt itself then run make and make install from terminal and it's installed but i can't find how to make it useful haw can i use it

            leo4as

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              I never heard about Qt Modeling before your post.
              So I don't know why and how to use it.

              Looks like they don't like build outside of a source tree.
              I tried to build it inside the source tree and got ./examples/uml/duse-mt/bin/duse-mt file.

              So the build procedure is.
              mkdir tmp
              cd tmp
              git clone git://gitorious.org/qt/qtmodeling.git
              cd qtmodeling
              qmake -recursive
              make

              And then you can try to run duse-mt like this
              LD_LIBRARY_PATH=./lib ./examples/uml/duse-mt/bin/duse-mt

              or you can try to programmatically create your models like it is written in "Basic Usage" on http://qt-project.org/wiki/QtModeling

              1 Reply Last reply
              0
              • L Offline
                L Offline
                leo4as
                wrote on last edited by
                #7

                Qt Modeling should create class diagram for Qt Projects so we don't need to use other programs like power amc to generate c++ code then edit it manualy to adapt it with Qt

                thank you for your help andreyc :)

                leo4as

                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