Results 1 to 8 of 8

Thread: Qwt examples

  1. #1
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Qwt examples

    Hey, ive recently got Qwt to work inside of Qt. Now i want to study the examples that are given with Qwt so that i can make my own 2D graph.
    In:
    /home/benutzer/Documents/qwt-5.0.2/examples/simple_plot
    i have two files:
    - simple.cpp
    - simple_plot.pro

    I want to run these programs so that i can see what they look like. Do i need to convert them to a python file first? How do i do that, which command do i use?
    thanks a lot.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,215
    Thanked 849 Times in 798 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt examples

    Qwt is a C++ library, the examples are C++ code. You need to install a C++ development environment and have to compile and link the Qwt examples before you can execute them.

    But maybe you are looking for PyQwt. It offers Python Bindings for the Qwt library.

    HTH,
    Uwe

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

    nitriles (2nd October 2007)

  4. #3
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qwt examples

    I am indeed looking for PyQwt, which should be installed already.
    So how should I go about installing/opening these examples?
    Is it something similar to converting .ui Qt files into .py codes:
    pyuic form.ui > form.py
    Thanks!

  5. #4
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qwt examples

    Ok so i managed opening them!
    But now they are in C++ code, how can i get it to python code, ive never had c++ and it is different!

  6. #5
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,215
    Thanked 849 Times in 798 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qwt examples

    AFAIK PyQwt comes with it's own examples, that are written in Python. This is what you are looking for.

    I'm don't know if these examples are included in the PyQwt package you have installed. If you don't find them look at the PyQwt project page.

    I'm the author of Qwt, but I never used the Python bindings myself. So for further question better ask Gerard ( the author of the bindings ) on the PyQwt mailing list.

    Uwe

  7. The following user says thank you to Uwe for this useful post:

    nitriles (4th October 2007)

  8. #6
    Join Date
    Sep 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Qwt examples

    Ok thanks a lot!
    I found the examples and they are a great help!
    thanks again.

  9. #7
    Join Date
    Nov 2008
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Default Re: Qwt examples

    Hello folks,

    I just joined as I am looking for help compiling on Mac OS X (10.5).

    I have compiled the examples using xcode and using the command line Make.

    Both ways, the program successfully compiles, but when I run it crashes with the following error on the command line:

    dyld: Library not loaded: libqwt.5.dylib
    Referenced from: /Users/sal/Downloads/qwt-5.1.1/examples/simple_plot/../bin/simple.app/Contents/MacOS/simple
    Reason: image not found
    Trace/BPT trap

    So, if any of you have any links that I can go check out, please let know.

    // Sal

  10. #8
    Join Date
    Jun 2011
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Qwt examples

    i Think program unable to find the path..Try to look for the path settings(LD_LIBRARY_PATH)

Similar Threads

  1. QWT fails in debug build
    By steg90 in forum Qwt
    Replies: 1
    Last Post: 11th November 2011, 07:53
  2. QWT introduction
    By nitriles in forum Qwt
    Replies: 4
    Last Post: 28th September 2007, 11:48
  3. Qwt 5.0.2
    By Uwe in forum Qt-based Software
    Replies: 1
    Last Post: 20th September 2007, 19:21
  4. How to upgrade Qwt 5.0.1 to Qwt 5.0.2
    By luffy27 in forum Qwt
    Replies: 1
    Last Post: 15th July 2007, 20:55
  5. use interesting QWT Library with QT3.X
    By raphaelf in forum Qwt
    Replies: 2
    Last Post: 23rd January 2006, 12:24

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.