Results 1 to 2 of 2

Thread: Doubt In QColor::colorNames()

  1. #1
    Join Date
    Jun 2011
    Location
    India
    Posts
    14
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Doubt In QColor::colorNames()

    Hi all I have a doubt in colorNames();. The function returns a QStringList with 148 colors and grey colors repeating again.

    'darkgray,darkslategray,dimgray,gray,lightgray,lig htslategray,slategray' have double entry as 'darkgrey,darkslategrey,dimgrey,grey,lightgrey,lig htslategrey,slategrey'.

    Is this a bug or they intentionally added like this.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Doubt In QColor::colorNames()

    It's intentional.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    vinodpaul (24th July 2012)

Similar Threads

  1. Qcolor as Hex format ?
    By augusbas in forum Qt Programming
    Replies: 2
    Last Post: 23rd November 2012, 22:06
  2. QColor value into SQLlite?
    By Gavin Harper in forum Qt Programming
    Replies: 3
    Last Post: 16th March 2011, 18:22
  3. QColor in QtScript
    By Kingofhearts_sri in forum Qt Programming
    Replies: 4
    Last Post: 9th June 2009, 14:50
  4. bug with QColor(QString& name)
    By Radagast in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2008, 14:24
  5. MFC PALLETEINDEX to QColor()
    By maverick_pol in forum Qt Programming
    Replies: 8
    Last Post: 24th September 2007, 07:10

Tags for this Thread

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.