Qt Modeling



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



  • 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.



  • 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"



  • 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?



  • 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



  • 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



  • 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 :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.