Results 1 to 9 of 9

Thread: How to Include Qwt in My Project

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2010
    Posts
    18
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to Include Qwt in My Project

    Hey Guys

    I have a project and I want to use qwt_text in it .
    So I installed qwt . Now I don't know how to include qwt_text in it

    I mean what are the neccessary changes that I have to make in my .pro file .

    I use ubuntu 10.10 , QtCreator 2.0.1 , Qt 4 , Qwt 5.2.1

    sry for dumb question

  2. #2
    Join Date
    Jun 2009
    Location
    AKL | New Zealand
    Posts
    62
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to Include Qwt in My Project

    Hi gbmtoday,

    I am new to Qwt too. I am using the same os as yours. I may give you a help.

    Can you see the qwt widget in your qt creator? if you can jump to 3)

    1) need to copy some files
    $ cp /home/czhang/qtsdk-2010.04/qwt-5.2.1/designer/plugins/designer/libqwt_designer_plugin.so /home/czhang/qtsdk-2010.04/bin/designer
    $ sudo cp -a /home/czhang/qtsdk-2010.04/qwt-5.2.1/lib/* /usr/lib64

    2) run your qt creator, you will see qwt widgets in there.

    3) in your .pro file, you need to add:
    Qt Code:
    1. LIBS += -lqwt
    2. INCLUDEPATH += /home/czhang/qtsdk-2010.05/qwt-5.2.1/src
    To copy to clipboard, switch view to plain text mode 

    you may need to add the following lib at the end:
    Qt Code:
    1. LIBS += -L/usr/local/lib -lQtSvg
    To copy to clipboard, switch view to plain text mode 

    I wrote a note to help me to remember what I did. here is the link, i hope it will be helpful.
    http://studyard.blogspot.com/2010/10...t-problem.html
    Last edited by cooper; 3rd November 2010 at 21:11.

  3. The following user says thank you to cooper for this useful post:

    gbmtoday (5th November 2010)

Similar Threads

  1. How to tell Qmake to include ws2_32 in visual studio project
    By umen in forum Installation and Deployment
    Replies: 0
    Last Post: 25th October 2010, 07:28
  2. Replies: 1
    Last Post: 3rd December 2009, 23:34
  3. How to include existing files to project?
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 14th November 2009, 20:50
  4. mfc in QT include
    By trusch in forum Qt Programming
    Replies: 3
    Last Post: 16th July 2009, 10:01
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.