Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLineSeries + black color

QLineSeries + black color

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 526 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fem_dev
    wrote on last edited by
    #1

    I have a proble with just one single color when I try to color the QLineSeries object:

    // Create a series:
    QLineSeries *serie = new QLineSeries(chart);
    
    // It works! I got a yellow line!
    serie->setColor(Qt::yellow);
    
    // The black color doesn't work! Why?
    serie->setColor(Qt::black);
    

    When I try to use the black color, I got default series color (which is Qt::color1 - Blue)

    In this link you can see the Qt Named Colors.

    Why Qt::black doesn't work?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved