hi to all user
at last i can find how can install and use "qwt" with "Qt creator" without any recompile creator !
it is very simple but need to remind one point
for using qwt you don't need to see it in qt creator widget list(left panel) BECAUSE:
1- you can create your form in qt "Qt Designer" .
2. add form to your project.
3. customize project pro file.
4.Compile and enjoy.
first download qwt-6.0.0-rc4
from sourcefoge, if it is not same as above version not important.
Do this step by step
1.)copy and unzip download file in C:\qwt-6.0.0-rc4
2.)open “C:\qwt-6.0.0-rc4\examples.proâ€
change “include( ../qwtconfig.pri ) “ =>
†include(qwtconfig.pri ) “
3.)Open “C:\qwt-6.0.0-rc4\ textengines\textengines.proâ€
change “include( ../qwtconfig.pri ) “ =>
†include(qwtconfig.pri ) “
4.)Open “C:\qwt-6.0.0-rc4\ qwt.pro†with “Qt Creator†Compile it in DEBUG mode
5.)if you see only some worning it is usually so don’t care;
6.) After compile complete
7.)goto “C:\ qwt-build-desktop \plugins\designer\designerâ€
8.)Copy “libqwt_designer_plugin.a†and “qwt_designer_plugin.dll†paste to
“[Qt install path]\qt\plugins\designerâ€
9.)goto “C:\ qwt-build-desktop\libâ€
10)copy “qwt.dll†to “[Qt install path]\qt\binâ€
11)copy “C:\qwt-build-desktop\lib\*†to “C:\qwt-6.0.0-rc4 \lib\*â€
Now you can use QWT Widget in your form at “Qt Designerâ€;
Now important place begin;
1.)create new project in qt and in wizard uncheck “Generate formâ€
2.)create your form in Qt Designer and save it in your project directory.
3.)Add Your designed form to your project.
4.)add this lines to your project pro file
INCLUDEPATH += C:/qwt-6.0.0-rc4/src
win32:LIBS += C:/qwt-6.0.0-rc4/lib/libqwtd.a
win32:QMAKE_POST_LINK = copy /Y C:\qwt-6.0.0-rc4\lib\qwtd.dll $(DESTDIR)
CONFIG +=qwt
If you run in debug mode red word stay
If you run in Release mode then “libqwtd=libqwt†and “qwtd=qwtâ€

Bookmarks