Results 1 to 2 of 2

Thread: qwt program builds but why there is no ouput window?

  1. #1
    Join Date
    Oct 2010
    Posts
    6
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Question qwt program builds but why there is no ouput window?

    I wrote a simple program to draw a graph using qwt in qt.when i build-run it doesnt give any error in compile output .BUt it doesnt display any output and says in application ouput tab in qt as

    Starting F:\Qt\qwtnew-build-desktop\debug\qwt.exe...
    F:\Qt\qwtnew-build-desktop\debug\qwt.exe exited with code -1073741515



    I pasted the pro file of my project below.
    Please let me know if any thing has to be added to pro file or is the code i wrote is wrong ,or any other issues it is related with.
    I am doin project based on this , and need to resolve the issue very soon.
    so please help.......




    .Pro file of my project
    -----------------------------------------------------------------------------------------
    QT += core gui

    TARGET = qwt
    TEMPLATE = app
    CONFIG += qwt
    SOURCES += \
    main.cpp
    INCLUDEPATH += C:\Qwt-6.0.0-rc3\include

    LIBS += C:\Qwt-6.0.0-rc3\lib\qwtmathml.dll
    LIBS += C:\Qwt-6.0.0-rc3\lib\qwt.dll

    ----------------------------------------------------------------------------------------

    .cpp file of my project
    -----------------------------------------------------------------------------------------

    #include<qwt.h>
    #include<math.h>
    #include <qwt_plot.h>
    #include <qwt_plot_curve.h>
    #include<QApplication>
    int main(int argc, char **argv )
    {


    QwtPlot *myPlot = new QwtPlot();

    // add curves
    QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");

    // copy the data into the curves
    const int points = 500;
    double x[ points ];
    double sn[ points ];
    double sg[ points ];

    for( int i=0; i<points; i++ )
    {
    x[i] = (3.0*3.14/double(points))*double(i);

    sn[i] = 2.0*sin( x[i] );

    }
    curve1->setRawSamples(x, sn, points );

    curve1->attach(myPlot);

    // finally, refresh the plot
    myPlot->replot();
    }

  2. #2
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    18
    Thanked 68 Times in 66 Posts

    Default Re: qwt program builds but why there is no ouput window?

    have a look at the qwt examples...

    little hint: "show()"

Similar Threads

  1. Replies: 4
    Last Post: 4th December 2010, 02:52
  2. Replies: 1
    Last Post: 29th May 2010, 00:01
  3. How to host the other process's window in a program?
    By tszzp in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2010, 11:34
  4. execute sth before program exits (user closes window)
    By donglebob in forum Qt Programming
    Replies: 6
    Last Post: 10th December 2008, 00:24
  5. Program that just shows a window
    By claudio-cit in forum Newbie
    Replies: 2
    Last Post: 5th July 2008, 10:55

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.