Results 1 to 9 of 9

Thread: Plotting around 1000 shape items in qwt polar/ qwt plot. Help needed.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Plotting around 1000 shape items in qwt polar/ qwt plot. Help needed.

    "most performant implementation" - is it best performance implementation?
    No.
    Actually, also, a unique number is to be displayed along with symbol;
    A marker offers displaying symbol + text, but the text is not cached ( also QStaticText is not used ), so there will be room for optimizations. If you want to go with the one vehicle = one item approach customizing QwtPlotMarker is probably easier than implementing a new item from scratch ( also nothing difficult ).

    So, I assume, the steps for movement of plot items on plot area would be: i. Create item. ii. Attach item to plot. iii. Detach/Delete and Attach it again at new position.
    In case of a marker it would be:

    marker->setValue( ... )
    plot->replot();

    Detaching/reattaching only because of an attribute change is not necessary.

    Uwe
    Last edited by Uwe; 11th February 2015 at 14:02.

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

    vishaal_sss (12th February 2015)

Similar Threads

  1. Replies: 7
    Last Post: 15th May 2019, 09:44
  2. system gets struced when add 1000+ QPixmap items to scene
    By prasad.ece2 in forum Qt Programming
    Replies: 6
    Last Post: 20th March 2014, 07:48
  3. Problem in plotting 3D plot using QWT
    By johnMick in forum Newbie
    Replies: 1
    Last Post: 15th July 2011, 11:19
  4. Replies: 1
    Last Post: 9th September 2010, 10:22
  5. Replies: 7
    Last Post: 22nd September 2008, 22:05

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.