Results 1 to 9 of 9

Thread: problem with dot style

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dot style

    Now i have a problem to change the symbol of this curve...

    for the moment i have several dots, it's nice but i want to change dots by triangle

    I have done this in my constructor:
    Qt Code:
    1. MySymbol =new QwtSymbol();
    2. MySymbol->Triangle;
    3. mycurve->setStyle( QwtPlotCurve::Dots );
    4. mycurve->setSymbol( MySymbol );
    To copy to clipboard, switch view to plain text mode 

    My curve always have dots and Triangles are not taken into account i have always Dots.

    => if i erase this line:
    Qt Code:
    1. mycurve->setStyle( QwtPlotCurve::Dots );
    To copy to clipboard, switch view to plain text mode 

    my curve don't appears,

    So i think i haven't understand the difference between style and symbol, i don't want line but i want to change Dots by triangle

    i hope you can help me

    thank a lot

  2. #2
    Join Date
    May 2011
    Posts
    122
    Thanks
    34
    Platforms
    Windows

    Default Re: problem with dot style

    it's work now but i superpoze dots and triangles...

Similar Threads

  1. QAbstractItemView style problem
    By QAlex in forum Qt Programming
    Replies: 0
    Last Post: 10th December 2009, 10:53
  2. Problem with fill style
    By hasmik in forum Qt Programming
    Replies: 3
    Last Post: 14th July 2009, 16:07
  3. Combobox style problem
    By zgulser in forum Qt Tools
    Replies: 5
    Last Post: 13th March 2009, 09:01
  4. Style Sheet Problem
    By zgulser in forum Qt Tools
    Replies: 8
    Last Post: 17th February 2009, 08:27
  5. [Qt 4.3.1]A problem with combobox style
    By Tamara in forum Qt Programming
    Replies: 3
    Last Post: 19th September 2007, 10:49

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.