Results 1 to 2 of 2

Thread: qwt plots & inheritance

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qwt plots & inheritance

    what is the difference between:

    Qt Code:
    1. my2dPlot::my2dPlot(QWidget *parent)
    2. : QwtPlot(parent)
    3. {
    To copy to clipboard, switch view to plain text mode 

    and

    Qt Code:
    1. my2dPlot::my2dPlot(QWidget *parent)
    2. : QWidget(parent)
    3. {
    To copy to clipboard, switch view to plain text mode 

    the first appears as the screenshot of the first post
    and the second appears as the screenshot f this post. It seems strange but there's something definitely wrong. The bode mouse tracker works only in grey area just above the green plot. The green plot is the one that is constructed in the my2dplot class. I can load a data file and see the plot, BUT I cannot use the zoomer of the bode example! Although I have declared:

    Qt Code:
    1. class MyWidget : public QWidget
    2. {
    3. public:
    4. MyWidget(QWidget *parent = 0);
    5. my2dPlot *mainPlot;
    To copy to clipboard, switch view to plain text mode 

    which means that mainPlot is a my2dPlot type and not just QwtPlot type. Somehow 2 different plot objects(my2dPlot,QwtPlot) are constructed at the same exactly position(see attachment)!
    Any ideas?!
    Attached Images Attached Images

Similar Threads

  1. Plots and Layouts
    By Ozzy in forum Qwt
    Replies: 5
    Last Post: 17th November 2009, 09:00
  2. Reg multiple plots in Qwt
    By Tavit in forum Qwt
    Replies: 4
    Last Post: 23rd June 2008, 13:43
  3. Lining up multiple plots
    By joel in forum Qwt
    Replies: 2
    Last Post: 20th June 2008, 00:25
  4. selecting text in Qwt plots
    By kaustav98255 in forum Qwt
    Replies: 3
    Last Post: 12th May 2008, 08:11
  5. Replies: 4
    Last Post: 25th October 2007, 12:23

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.