Results 1 to 5 of 5

Thread: Zooming problem with QwtSymbol::Ellipse

Hybrid View

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

    Default Re: Zooming problem with QwtSymbol::Ellipse

    Hi,

    I have qwt-6.0.0-rc5. The symbols are plotted perfectly fine,
    but when I want to zoom I get a segmentation fault.

    Qt Code:
    1.  
    2. sym.setStyle(QwtSymbol::Ellipse);
    3. sym.setPen(QPen(Qt::black));
    4. QBrush brush(Qt::yellow);
    5. sym.setBrush(brush);
    6. sym.setSize(1);
    7.  
    8. continuumCurve->setSymbol(&sym);
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: Zooming problem with QwtSymbol::Ellipse

    In Qwt 6.x the symbol needs to be allocated by new. This is something you can expect from all parameters, that are passed as pointer ( in opposite to references ).

    Uwe

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

    fatecasino (29th March 2011)

  4. #3
    Join Date
    Nov 2010
    Posts
    142
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    24

    Default Re: Zooming problem with QwtSymbol::Ellipse

    thanks, it worked!

    Qt Code:
    1. QwtSymbol *sym = new QwtSymbol;
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QwtSymbol highlighting?
    By shud in forum Qwt
    Replies: 1
    Last Post: 2nd October 2009, 22:42
  2. Qwt Zooming Problem....urgent
    By Raghaw in forum Qwt
    Replies: 0
    Last Post: 2nd September 2009, 16:12
  3. QT3 to Qt4 port - problem seeing Ellipse etc
    By tanimbar in forum Qt Programming
    Replies: 3
    Last Post: 10th March 2008, 14:44
  4. problem with opengl, zooming, drawpixels, and origin
    By ntp in forum General Programming
    Replies: 0
    Last Post: 22nd February 2008, 22:48
  5. Zooming QCanvas: QCanvasLine problem
    By Pieter from Belgium in forum Qt Programming
    Replies: 1
    Last Post: 4th October 2006, 17:58

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.