Results 1 to 3 of 3

Thread: trying to Use QcolorDialog to change symbol color on qwtplot

  1. #1
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default trying to Use QcolorDialog to change symbol color on qwtplot

    Hi,

    I am trying to use QColordialog to get color of user's choice and then wants to change the color of a single point on Qwtplot to that color. How can I do it?

    This is my first post here hoping to get some response.I would really appreciate your help.

    Regards,

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

    Default Re: trying to Use QcolorDialog to change symbol color on qwtplot

    I won't tell you how to use QColorDialog, but the Qwt related question is how to assign a color to a symbol of a point:

    If your symbol is a point of a curve you can't change its color without changing the color of all other points of the curve ( beside you overload QwtPlotCurve::drawSymbols ). If it is a marker you can simply assign the color to the symbol. If you don't have too many colored points you can have your point as part of the curve + as a marker with a higher z value.

    Uwe

  3. #3
    Join Date
    May 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: trying to Use QcolorDialog to change symbol color on qwtplot

    Thanks Uwe for quick response(I appreciate this)... I am using Qwtplotcurve so I would see if its feasible for me to overload drawsymbols() function.

    One more Question I have labels of the plot points in a Qtableview and I am looking to link them. Linking means whenever I select a label in Qtableview that point in the plot highlighted.is there a way I can do it.

    Cheers,

Similar Threads

  1. Replies: 3
    Last Post: 22nd January 2010, 17:46
  2. Replies: 1
    Last Post: 5th January 2010, 22:00
  3. how to change the color of a top widget ?
    By feiyinziiu in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2009, 03:41
  4. how to change the color of the frame
    By wagmare in forum Qt Programming
    Replies: 5
    Last Post: 12th May 2009, 13:46
  5. how to change backgroup color, button color and shape?
    By lzha022 in forum Qt Programming
    Replies: 10
    Last Post: 16th June 2008, 23:25

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.