Results 1 to 2 of 2

Thread: How to add the random symbol syles(ex:QwtSymbol::Ellipse) for the multiple curves..

  1. #1
    Join Date
    Feb 2010
    Posts
    28
    Qt products
    Qt4
    Platforms
    Windows

    Smile How to add the random symbol syles(ex:QwtSymbol::Ellipse) for the multiple curves..

    Hi ,

    I need some help for the following...

    i wanted to add the random symbol style(ex:QwtSymbol::Ellipse)...for multiple curves....

    can any one please help me...

    Thanks in Advance,
    mammaiap

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

    Default Re: How to add the random symbol syles(ex:QwtSymbol::Ellipse) for the multiple curves

    I'm sorry, I don't get wht you mean.

    what "random symbol"? and what does that have to do with multiple curves?

    My guess: you have multiple curves in a plot. you want to give each curve a symbol. you don't want to set this symbo manually, but random. Is that right?

    the symbol style is an enum with 16 elements (and an additional one for "NoSymbol"). So, create a random integer between 0 and 16 (NoSymbol has value "-1"), create a new symbol with this integer as style and set it to your curve...

Similar Threads

  1. Replies: 4
    Last Post: 29th March 2011, 20:33
  2. Replies: 1
    Last Post: 7th April 2010, 16:26
  3. Select multiple curves
    By aimsc in forum Qwt
    Replies: 2
    Last Post: 30th October 2009, 10:45
  4. Replies: 2
    Last Post: 1st August 2009, 11:44
  5. Multiple curves on top of each other
    By jmsbc in forum Qwt
    Replies: 2
    Last Post: 15th July 2009, 19:46

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.