Results 1 to 16 of 16

Thread: QwtPlot derived class

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    20
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question QwtPlot derived class

    Hello,

    I want to create a class based upon QwtPlot. I declare it as usual:

    Qt Code:
    1. #include <Qwt/qwt_plot.h>
    2.  
    3. class myplot : public QwtPlot{
    4. Q_OBJECT
    5.  
    6. public:
    7. explicit myplot(QWidget *parent = 0);
    8.  
    9. signals:
    10.  
    11. public slots:
    12.  
    13. };
    To copy to clipboard, switch view to plain text mode 


    But I get the error:

    "During startup program exited with code 0xc0000005".

    I know it's an access violation error. But I don't know why it happens only if I create a class derived from QwtPlot. In my application there are several Qwt items and all works fine.

    What I should do to find (and fix) the issue?
    Thanks in advance
    Marco

    ps. I get the same behavior if I include the incrementalplot for example
    Last edited by Marco Trapanese; 7th February 2012 at 10:27.

Similar Threads

  1. Signal do not work in derived class
    By nickla in forum Qt Programming
    Replies: 0
    Last Post: 19th March 2011, 22:25
  2. Replies: 1
    Last Post: 24th October 2010, 02:40
  3. Use QWidget derived class in Dialog
    By qtneuling in forum Qt Tools
    Replies: 2
    Last Post: 17th May 2008, 23:29
  4. rtti() of derived class
    By quickNitin in forum Newbie
    Replies: 4
    Last Post: 8th October 2006, 14:20
  5. Signal/slot looking in base class, not derived class
    By georgie in forum Qt Programming
    Replies: 2
    Last Post: 12th May 2006, 07:36

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.