Results 1 to 8 of 8

Thread: Qwt examples are working but,Not able to run selfdesigned qwt applications!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    74
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Qwt examples are working but,Not able to run selfdesigned qwt applications!

    Hello! Friends,
    I am working in WinXp with Qt4.3.4. Also i have installed qwt library and can use qwt plugin in Qt. All the qwt examples are compiled and working properly.

    But today i tried to design a simple GUI widget form containing 2 pushbuttons & QwtPlot widget, but getting following error's.

    In file included from main.cpp:3:
    sampleplot.h:5:22: qwt_plot.h: No such file or directory
    sampleplot.h:7:28: qwt_plot_curve.h: No such file or directory
    sampleplot.h:8:27: qwt_scale_map.h: No such file or directory
    In file included from sampleplot.h:10,
    from main.cpp:3:
    ui_sampleplot.h:30: error: ISO C++ forbids declaration of `QwtPlot' with no type

    ui_sampleplot.h:30: error: expected `;' before '*' token
    ui_sampleplot.h: In member function `void Ui_sampleForm::setupUi(QWidget*)':
    ui_sampleplot.h:54: error: `sampleqwtPlot' was not declared in this scope
    ui_sampleplot.h:54: error: `QwtPlot' has not been declared
    In file included from main.cpp:3:
    sampleplot.h: At global scope:
    sampleplot.h:16: error: expected class-name before ',' token
    sampleplot.h:37: error: ISO C++ forbids declaration of `QwtPlotCurve' with no ty
    pe
    sampleplot.h:37: error: expected `;' before '*' token
    main.cpp: In function `int qMain(int, char**)':
    main.cpp:8: error: 'class samplePlot' has no member named 'show'
    main.cpp:11:2: warning: no newline at end of file
    mingw32-make[1]: *** [release/main.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Shishir/Self Examples/Sample_Plot'
    mingw32-make: *** [release] Error 2
    From this it seems that it is not able to find the qwt files, but all qwt examples are working that means it can find them!!!!

    Can anyone please help me out in this.-->I will be obliged.

    Thanks in advance.
    Last edited by jpn; 11th March 2008 at 19:45. Reason: missing [quote] tags

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.