Results 1 to 4 of 4

Thread: Simple MANUAL / GUIDE for including QWT in your application

  1. #1
    Join Date
    May 2010
    Posts
    86
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Cool Simple MANUAL / GUIDE for including QWT in your application

    Add all *.cpp and *.h files from QWT project directory to your project (best if you copy them under your program directory, so shorter path is enough).

    Add these to your <your application>.PRO file:

    QT += svg
    INCLUDEPATH += <path to qwt>/qwt

    Take one of the examples for playing with and include the source/header files of it also in your project.

    E.g.:

    CpuPlot *cpuPlot = new CpuPlot;
    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(cpuPlot);

    Voila, that's all! Don't rob your time with compiling QWT, including DLLs or other complex stuffs.

  2. #2
    Join Date
    Jul 2010
    Posts
    37
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Simple MANUAL / GUIDE for including QWT in your application

    Yes, it works: this is a short way to use Qwt in you application, embedding surces in your code compiled.
    The standard way, compiling separately Qwt and using the dll, it's more product oriented.

    For example, suppose that Qwt will release a bugfix: in your solution, you must recompile your application and make a new release of it, in the standard case, only Qwt dlls will be recompiled and released wothout versioning your application .

    My advice is to keep separate the libraries from you application.
    bye

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,309
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Simple MANUAL / GUIDE for including QWT in your application

    Turning my irony detector off: obviously this is no solution for your problem of installing a designer plugin and using it inside the Creator. And of course you have to take care of license implications.

    I have a serious problem with postings like yours - not because of what you are writing, but with where you are posting. This forum is read by users looking for solutions for problems they have with installing or using Qwt. But then they find useless hints like this one or advices, that might have worked to a certain degree in a special environment for some old version of Qwt.

    Unfortunately the archive of this forum has already become a source for confusion instead of helping about installing Qwt. I absolutely don't want to censor something, but it would have been better if I had removed all threads with misinformation in the beginning.

    In the end the reason for all these installation problems is, that too many Windows people are not used to work with source packages and there is no concept of a distribution - like in the Linux world, where packagers build binary packages for you.

    Uwe

  4. #4
    Join Date
    May 2010
    Posts
    86
    Thanks
    17
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Simple MANUAL / GUIDE for including QWT in your application

    Hi,

    You both have truth in your words, and I also on this view. As Uwe said, yes, I'm using it on Windows platform, and I tucked right at the beginning of creating the plugin for Designer. I would need to recompile Qt from source, since that was not compiled with mingw, but msvc - if I remember well. When I wanted to create a dll, I was able to do that, but only debugger version, not release version and couldn't use it. I didn't find a good manual in the archive describing everything step by step for different purposes, but lots of confusion - as you said. It might be good to have a proper sticky thread on the top.
    Sorry for the thread, but I only wanted to help newbies like me on Win platform.

Similar Threads

  1. Replies: 4
    Last Post: 5th September 2010, 11:08
  2. Framebuffer and simple launcher of application
    By damien in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 6th February 2009, 22:33
  3. Replies: 5
    Last Post: 19th November 2008, 18:54
  4. a simple application
    By aegis in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2007, 16:04
  5. Making some simple help for my application
    By Godlike in forum Newbie
    Replies: 9
    Last Post: 21st April 2006, 19: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.